How can I include ALL post types in the_post_navigation() links, not just current post type?

By default the the_post_navigation() uses the current post type, whatever it may be. Luckily, that function eventually calls get_adjacent_post() which has a few hooks we can use. The below uses get_{$adjacent}_post_where where $adjacent is either “previous” or “next”: /** * Modify the posts navigation WHERE clause * to include our acceptable post types * * … Read more

Show single post child category from a determined parent

Well in the end I used custom taxonomy, and it’s also more simple to manage. I post as I did : //hook into the init action and call create_topics_nonhierarchical_taxonomy when it fires add_action( ‘init’, ‘create_regions_nonhierarchical_taxonomy’, 0 ); function create_regions_nonhierarchical_taxonomy() { // Labels part for the GUI $labels = array( ‘name’ => _x( ‘Regions’, ‘Where are … Read more