Is there a way to get the content from another outside the loop? The ID is 302 and I need to display the content of that on another page....
Is there a simple or easy way to exclude all posts from a custom taxonomy in the loop? I’ve been looking high and low, and neither SE, SO or...
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7...
I have a code that call get_the_title() and it works, but get_the_excerpt() return empty. How can i make it work? This code is inside a plugin called “WP Facebook...
I see the following code a lot in index.php files. I understand that is_front_page() returns true when viewing the Site Front Page (whether displaying the blog posts index or...
I’ve got a custom loop that I’m using to display some Real Estate listings that will be available within 60 days. I’m calling it with the following function: <?php...
I tried tplacing this: <?php $count = count($custom_posts); ?> <h2><?php echo $count; ?></h2> at the end of the loop: <?php if ( bbp_get_forum_title() == 'Test Forum 1' ) :...
I want to add custom PHP code to ensure that whenever a page on my site loads in my browser, the URL of that page is echoed to the...
I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query...