Adding or Including custom post type to default WordPress loop

6 years ago

Adding or Including custom post type to default WordPress loop by altering the 'pre_get_posts' function. Here it use add_action() function.…

How to Limit or Disable WordPress Post Revisions

Limit the number of posts revisions that WordPress stores in the database. edit wp-config.php file in WordPress root: [crayon-68b630048f77a778582995/] WP_POST_REVISIONS:…

6 years ago

Multisite – List Recent Posts Across an Entire Network

In Multisite, List Recent Posts Across an Entire Network by using custom query or WP_Query you can list all recent…

6 years ago

Disable update notification for individual plugins / All

code for the plugin file itself:- [crayon-68b63004905c9332400097/] I like to put this in the actual plugin. Since I've only ever…

7 years ago

How to change the WordPress permalink structure to remove dates from the URLs

Switching the permalink structure from /year/month/post-slug to just /post-slug is easy by going to Settings > Permalinks and choosing “Post…

7 years ago

Limit character in content and title in wordpress

[crayon-68b6300527747430336966/] or with readmore [crayon-68b6300527753040872492/]  

7 years ago

Hide page visual editor if certain template is selected

[crayon-68b630052797d231252176/]  

7 years ago

Remove Admin Menus

[crayon-68b6300527cda375223394/]  

7 years ago

has_post_thumbnail() not working

Assuming that you’re in The Loop, you can fix this problem, by replacing: [crayon-68b6300527e65230438678/] with [crayon-68b6300527e6a630926650/]  

7 years ago

Display admin menu urls – debug

[crayon-68b6300527f72143599139/]  

8 years ago