Skip to main content

Unanswered Questions

2,367 questions with no upvoted or accepted answers
2 votes
0 answers
43 views

Use walker for specific menu, or avoid use of walker

I'm trying to solve a particular problem and having trouble figuring out which way is best. So, I have a menu (generated through WP's menu creator) and would like to pull the featured image of each ...
2 votes
3 answers
946 views

Create a custom php page and load it at a specific slug

I have this painful problem with a client. They need to load a feed from a remote endpoint into a page that fits their WordPress template design.. They also want to display the page at a particular ...
2 votes
0 answers
566 views

Gutenberg: How to mix dynamic and static output?

Gutenbergs handbook (https://wordpress.org/gutenberg/handbook/blocks/creating-dynamic-blocks/) suggests to return null in the save() function for dynamic blocks. But what if I only want parts of my ...
2 votes
0 answers
308 views

Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I'm not

Working on a custom api for a site I'm building and I found a weird issue with wp_get_nav_menu_items. Essentially - wp_get_nav_menu_items only works and returns items when I'm logged in. If I'm not ...
2 votes
0 answers
423 views

Custom Category/Subcategory structure

I am building a site with several sections, and one of them is a special page to navigate through categories in a hierarchical style (you can navigate into categories/subcategories and see their ...
2 votes
0 answers
308 views

Import menu tree to custom menu from csv or xml, many nested menu points

what would you recommend to import about 6000 menu items (yes it is ab big catalog with many nested categroies, depth about 6) to a custom menu in Wordpress. I have a text file with the following ...
2 votes
0 answers
403 views

removing custom tax & CPT slug, adding taxonomy term in front of custom type

I am having difficulties setting up the following structure in Wordpress: site.com/custom-taxonomy-phase-term/ (taxonomy page but without the taxonomy slug) site.com/custom-taxonomy-phase-term/...
2 votes
1 answer
1k views

Create Dropdown menu Using wp_nav_menu() function

Kindly provide me wp_nav_menu structure to create the following dropdown menu. <div class="container"> <div class="nav-menu"> <a class="toggleMenu" href="#">Menu</a> <ul ...
2 votes
0 answers
1k views

Update Nav Menu Items Programmatically

I know this may sound stupid, but I created a code which (in theory) should add a few submenus to my primary menu. However I don't seem to be able to display this new menu because I don't know when I ...
2 votes
1 answer
590 views

Work flow for multiple developers

I'm looking to streamline the development work flow for a new project that will have multiple developers involved (backend and frontend). My biggest quandary is how best to make sure all devs have ...
2 votes
0 answers
598 views

Custom column sorting in WordPress admin post table

I have made a custom column in user administration panel showing user meta data and registered it as sortable. Made a query action to sort it by the meta numerical value (the stored user meta data is ...
2 votes
0 answers
23 views

Change where navigation bar links?

I have a client with a WordPress blog who wants to have her website run two separate websites in the same WordPress installation by duplicating pages and changing the place that the navigation bar ...
2 votes
0 answers
207 views

Unique User Account Number + Displayed Via Shortcode

I've seen a couple articles on creating unique account numbers for users: https://stackoverflow.com/questions/37693209/create-unique-account-number-for-every-user-that-registers-to-the-system-using-w ...
2 votes
0 answers
4k views

Add attribute / custom attribute to product in woocommerce

I have products from some API and want to insert these products. I was able to insert products and use already existing attributes ( or added by UI ). Adding new term (My Color) to the existing ...
2 votes
0 answers
221 views

add_rewrite_rule won't work

I did it in the past and it did work. But this time it won't work and I can't figure out why. The difference is the version of Wordpress and the version of WPML. So, I have the latest version of both:...

15 30 50 per page