WP_Query for a list of specific pages
This will return a list of specific pages in the same manner as posts are usually returned. <?php $args = array( 'post_type' => 'page', 'post__in' => array( pagdeid1,pageid2,pageid3),…
This will return a list of specific pages in the same manner as posts are usually returned. <?php $args = array( 'post_type' => 'page', 'post__in' => array( pagdeid1,pageid2,pageid3),…
Here is how to change the number of posts that are display on a Taxonomy Template page within Wordpress. So let's say you want to show 20 posts of two…
The following snippet will get the posts of a specific category. So if you wanted to have a page that just shows posts of a certain category this would do…
The following snippet of code will check to see if your post or custom post type has any attachments and then allows you to use an if else statement. You…
The following will list the categories of the current post type. If you want to exclude one of the categories so it does not show add this:
The following snippet will give you just the url for the featured image without wrapping it in any tags. Code credit to: http://www.wpbeginner.com/wp-themes/how-to-get-the-post-thumbnail-url-in-wordpress/
Here is how to setup a custom Wordpress excerpt function with the following criteria: This will allow you to limit the amount of characters displayed in the excerptWhile limiting the…