This works for me:
- Create a Page called “Blog” and in Settings > Reading, set the Blog
Page to be the Posts page. - Create a WordPress menu and add to it my Blog Page, Category 1 and Category 2
- Navigate to one of the posts in Category 1
- Category 1 is set as “current-post-parent” in the menu
You can remove “category” from the URL using one of the various methods out there (plugin, permalink structure, .htaccess). I just tried using the permalink structure method and that worked fine.
Hope this works – keeping my fingers crossed & knocking on wood & all that good stuff! 🙂
Related Posts:
- My post repeats itself on the second page [closed]
- How to reverse post navigation at bottom of post
- Pagination doesn’t work in query post in tag template
- How to Get All Posts with any post status?
- posts_per_page no limit
- Programmatically add a Navigation menu and menu items
- How can i get count from query post
- Dynamically exclude menu items from wp_nav_menu
- query_post by title?
- wp_nav_menu(), how to change class?
- Split up wp_nav_menu with custom walker
- Why query_posts() isn’t marked as deprecated?
- Alternative to query_posts for main loop? [duplicate]
- Is there an easy way to replace a custom menu link with a page or post?
- how to query posts by category and tag?
- Using WP_Query to Query Multiple Categories with Limited Posts Per Category?
- Order by meta value or date?
- How do I query by post format in WordPress 3.1
- Mega Menu Walker
- Display posts of the last 7 days
- How to Add to Each Menu Link with link text to data-attr?
- Is there a way to exclude the content from the post variable to save on RAM usage?
- Filtering posts by post meta data
- Add Javascript to WordPress Menu
- Filter wp_nav_menu()
- Add custom classes to anchor in wp_nav_menu
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- Query posts by custom taxonomy ID
- Display/query post formats
- Add data-icon input to WordPress custom menu links
- Displaying Logged-In User Name in WordPress Menu
- Remove current_page_parent nav class from blog index when in CPT
- Custom search filter causes menu and query_posts problems
- Remove Container Element From wp_nav_menu() Markup
- How to query post by user role?
- Add Dividers or Separators Between Nav Menu Items
- Using WordPress to make a “Product Search” type navigation drilldown
- How to return results of a get_posts() in explicitly defined order
- Show just one level of child pages, wp_list_pages woe
- Removing link ” from ” menu for some “links” without JS
- Help to condense/optimize some working code
- Show current navigation path from menu
- Call custom field into menu item
- Use navigation path from menu for permalink
- Exclude Private, Draft pages from Primary Nav when using custom menu
- How to set posts per page using WP_Query()
- query_posts exclude a meta key
- How do I create a random post that will last for a day
- Ensuring sticky posts are retrieved first (without using two queries)?
- add span class inside wp_nav_menu link anchor tag
- wp_nav_menu always falls back to a menu
- Determine if more posts are available than was asked for in `query_posts()`?
- wp_get_nav_menu_items how to exclude sub level menu items?
- Modify main WordPress loop with a parse_query filter
- Multi Level Bootstrap Navigation Menu in WordPress
- How to set limit only on top levels of wp_nav_menu?
- Determine if a navigation item has children
- What’s the easiest way to duplicate an entire navigation menu?
- query_posts() in function makes global $wp_query out of sync?
- Limiting query_posts to 1, regardless of sticky post?
- How to make “sticky” pages (and query by them)
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- Query posts: how to exclude results if post is in multiple categories
- Show only 2nd level of navigation depending on active navigation
- How to move parent li to end of child ul
- query_posts ->using meta_compare / where meta value is smaller or greater or equals
- Problem with ‘post__not_in’
- How to order posts by descending comment count on taxonomy page?
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- Add custom attributes to menu items without plugin
- Breadcrumbs showing Parent and Child Pages
- Add Page ID class to nav menu items
- How to add menu support to a theme?
- Sort posts alphabetically by custom field value, insert divider between different letters
- Is it better practice to use query_posts, WP_Query, or get_posts to create various custom loops within a Page?
- WP 5.8 “Query Loop” block: where to place custom query?
- Sort X categories by last update and show image
- Custom Post Type “Event”: chronological list of recurring events
- How to highlight the right item in the navbar
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- using post__in allow duplicate post id
- How to manually add an item to a submenu in a menu generated by wp_nav_menu?
- Pagination on archive.php page
- WordPress Export Import Site Navigation Menu
- WordPress Custom Query
- Using Image Links in WordPress Navigation Menus Instead Of Text Links
- Best way to load page content in Fancybox popup?
- Links open only on new tab or window
- Adding Post Counts to Menu (Nav) Programmatically?
- How should I intercept the main query and inject custom join / order by / group by criteria
- Not able to get current menu ID
- advice on creating a ‘related posts’ query like the one used on stackexchange
- order post my meta value m/d/y format with year as included value
- Order by meta value, pro first, then free
- Having trouble generating pagination links on custom query
- How to create an attachments archive with working pagination?
- _wp_page_template to dynamically use template