Is get_posts() more efficient than The Loop?
In category.php, I want to get list of posts in that category. I found two ways: using get_posts($args) and The Loop. get_posts() way … Read more
In category.php, I want to get list of posts in that category. I found two ways: using get_posts($args) and The Loop. get_posts() way … Read more
I can’t seem to get drafts to show up with WP_Query, even when post_status is set to ‘any’ or ‘draft’ $args = array( … Read more
How can I separate posts by year in archive page for Custom Post Type? while ( have_posts() ) : the_post(); the_title(); the_post_thumbnail(‘thumb’); endwhile; … Read more
I have a list of terms I’m displaying using “get_terms”. Each term is linked so if the user clicks it, they go to … Read more
How could i get List of all the Authors? author.php file shows the Information about Individual Author. for example: http://domain.com/author/bj that returns the … Read more
I’ve seen some examples that use $_post instead of $post. What’s the difference and when would you use $_post instead of $post? Example: … Read more
I would like to use the default category for my custom post type, but when I open the category page there’s no posts … Read more
Im having a problem where for some reason, a basic loop im trying to add to a sidebar keeps….keeps looping on interior pages … Read more
I want to show 5 posts per page but limit total number of posts being resulted in a loop. $args = array( ‘post_type’ … Read more
I have a custom post type called vacancies and another called our_homes How do I get the google map coordinates from our_homes and … Read more