Get Non-Paginated Index of Post in Paginated Query

The concept of dividing up a set of posts into a number of “pages” is called Pagination, and is controlled by a number of pagination parameters in a WordPress posts query. The three most relevant (and most commonly used) are: posts_per_page: the number of posts displayed on each page paged: which page of posts is … Read more

Multiple archives for cpt, taxonomies, terms

I’m not totally sure what you’re asking, but if you’re asking about the template that would be used by the term, it would be taxonomy-slug-term.php. So for your taxonomy, the default template for the taxonomy would be taxonomy-argomento1.php Each of the term archives would use this same template, unless they have a specific template specified. … Read more

Display custom post type archive on page.php template

If you don’t want to supply your own page templates and using your current code is not a possibility (because of how the loop loops through all the posts) I would recommend prompting the plugin users to select a page on which they want your plugin’s content displayed (as an option on your plugin’s setting … Read more

How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]

Seems to me the desire to use that page-builder plugin has resulted in a solution far more complicated, laborious, and convoluted than whatever you’re calling the “long and manual way” 😛 . WordPress itself answers your question. WordPress Philosophy Pages are for static, timeless, and potentially hierarchical content. Plugins abuse that notion sometimes, but never … Read more

How can I change archive.php posts display?

It depends on how your archives.php is designed. You can use built-in wp_get_archives() function to get posts for last 12 months: <?php wp_get_archives( array( ‘type’ => ‘monthly’, ‘limit’ => 12 ) ); as described in the Codex. Or you can modify the WP_Query using ‘date_query’ parameter: <?php $args = array( ‘date_query’ => array( array( ‘after’ … Read more