New answers tagged

0

I got it! For any one in the future with the same problem: ACF's get_field_object() apparently makes a WP_Query and doesn't clean up after so, since I called it for every post, I always got the same post after a certain point in the elaboration. I found the solution in this question. Some code for clarity: <?php while ( $query->have_posts() ) : ...


0

Have you tried using wp_reset_query() before the loop.


0

If you want to list all the available categories for a custom post type, this snippet might help you. Just use the standard get_categories() function and pass the $args relating to the taxonomy you registered for your CPT. So, if you defined your taxonomy like this: register_taxonomy( 'the_taxonomy_named_in_your_CPT' ); Then you'd show the taxonomy to ...


0

Nevermind. It turns out that this doesn’t list the parent categories anyway!


0

You can find in inc/template-tags.php file. if ( is_category() ) { $title = sprintf( __( 'Category: %s', 'tesseract' ), single_cat_title( '', false ) ); }


0

Make a new file and include a page template to structure the loop and display your bookmarks. <?php /** * Template Name: Bookmarked Page * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ Then just make sure a page exists called bookmarked (so the url is in place) and set it's template to the custom page ...



Top 50 recent answers are included