Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

navigation

Remove current_page_parent nav class from blog index when in CPT

August 3, 2022August 2, 2022 by Magenaut

I’m trying to remove current_page_parent class from the blog index menu item (I got a custom page to display all blog posts and it is in the menu) when navigating custom post type archive page and custom post type posts.

Categories Q&A, Wordpress Tags custom-post-types, menus, navigation Leave a comment

Add custom classes to anchor in wp_nav_menu

August 3, 2022August 2, 2022 by Magenaut

I want to add a custom class to anchors in wp_nav_menu outputs.

Categories Q&A, Wordpress Tags hooks, menus, navigation, theme-development, themes Leave a comment

Add custom attributes to menu items without plugin

August 3, 2022August 2, 2022 by Magenaut

I’m trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to setup a plugin as well.

Categories Q&A, Wordpress Tags menus, navigation Leave a comment

Replacing WordPress menu functionality with a plugin

August 3, 2022August 2, 2022 by Magenaut

I asked this earlier on StackOverflow.com before realizing there was a StackExchange specifically for WordPress. Here is the link to the old question (for moderator deletion):

Categories Q&A, Wordpress Tags menus, navigation, plugin-development Leave a comment

specify meta_key / meta_value condition for prev_post_link and next_post_link

August 2, 2022August 1, 2022 by Magenaut

I’ve got a custom post type (CPT) called event. Every event has got an associated meta_key called event_date.

Categories Q&A, Wordpress Tags custom-post-types, hooks, navigation, next-post-link, previous-post-link Leave a comment

Add custom meta to nav menu items

August 2, 2022August 1, 2022 by Magenaut

I need to attach meta data to every menu item, with a key ‘foo’. Is it possible to do that, without editing core WP?

Categories Q&A, Wordpress Tags navigation Leave a comment

Mega Menu Walker

August 2, 2022August 1, 2022 by Magenaut

I’m trying to create a mega menu walker. Unfortunately, walkers completely escape my coding knowledge. I could really use some help getting it working. Here’s the features I need:

Categories Q&A, Wordpress Tags functions, menus, navigation, php, walker Leave a comment

How to modify navigation menu of the “My Account” page in WooCommerce

August 2, 2022August 1, 2022 by Magenaut

I want to modify the WooCommerce “My Account” left side navigation menu.

Categories Q&A, Wordpress Tags menus, navigation, woocommerce-offtopic Leave a comment

Customizing Walker_Nav_Menu

August 2, 2022August 1, 2022 by Magenaut

I’m looking for a solution to adjust the output of wp_nav_menu only on a specific navigation menu. I have my menu:

Categories Q&A, Wordpress Tags navigation, walker Leave a comment

Pagination with custom SQL query

August 2, 2022August 1, 2022 by Magenaut

I have my own SQL string to select Custom Post Type posts with specific WHERE clause. I’ve used the offset and limit to return appropriate posts depending on a page being displayed. That’s working fine.

Categories Q&A, Wordpress Tags navigation, pagination, sql, wp-query, wpdb Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress