$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>code to add an extra selection to the menu editor|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

code to add an extra selection to the menu editor

matteradmin9PV0评论

I've given up looking for a plugin to achieve what I want (either they don't exist or I'm not using the correct search term) either way this leaves me with two options. Pay someone to make the changes to WP or do it myself. I'd prefer to do it myself but I admit that I'm a little nervous as I don't have much experience in .php coding although I am okay with html and css.

What I'm trying to achieve is a menu created from the data contained in a custom field of my product posts. Like this...

What is the simplest way to achieve this? If there's a way that doesn't involve editing the WP GUI that just automatically adds the values from the custom field to a menu, then I'd be happy with that too.

Thanks for your help.

I've given up looking for a plugin to achieve what I want (either they don't exist or I'm not using the correct search term) either way this leaves me with two options. Pay someone to make the changes to WP or do it myself. I'd prefer to do it myself but I admit that I'm a little nervous as I don't have much experience in .php coding although I am okay with html and css.

What I'm trying to achieve is a menu created from the data contained in a custom field of my product posts. Like this...

What is the simplest way to achieve this? If there's a way that doesn't involve editing the WP GUI that just automatically adds the values from the custom field to a menu, then I'd be happy with that too.

Thanks for your help.

Share Improve this question asked Nov 6, 2018 at 14:12 Phil TinsleyPhil Tinsley 33 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The WooCommerce Brands plugin has this feature. https://woocommerce/products/brands/

It sounds like you would need to move your brands out of the custom field and into this plugin, so the effort will depend on how many product brands you have and whether you're willing to start over with this plugin.

Post a comment

comment list (0)

  1. No comments so far