Tag Info

New answers tagged


First, throw away your custom walker. Post URLs are called permalinks, and as with most things in WordPress, you can filter them! There is a filter called post_link that lets you modify the URL of the post before it's returned in get_permalink(). We can use this, along with the posts slug, and the home_url function to get something similar to this: ...


Figured it out as I wrote out my question. Love when that happens. Here is the solution if someone needs this for the future. I simply just wrapped the desired output in a conditional to match the depth I needed. Viola> if ( 0 == $depth ) { $item_output .= "\n$indent<div class=\"dropdown\"><div class=\"container\"><div ...

Top 50 recent answers are included