Dynamic content based on a URL parameter

My suggestion would be to use a custom page template. In your functions file you require a php file that contains the custom template. require_once ‘buy_page_template.php’; and that file declares itself to be a template by containing some commented out text: <?php /* Template Name: Buy Page */ Once you’ve uploaded and required that file, … Read more

WP_Query filters

Assuming you want to keep the WP_Query exactly the same there’s 2 ways I can think of which you could do this using various loops. 1) Grab the first post from the posts Array. WP_Query has a bunch of properties and methods one of which is the posts array. if( $the_query->have_posts() ) { // Grab … Read more

Load More Posts Button – AJAX

After a chat session between trunks (the OP) and I, here’s what we discerned the issue was. In success within the AJAX there was a chained series of instructions. .text().prev().before(); Once the button was added into a div, this presented itself as a problem because the new posts were appearing before the button, but the … Read more