How to extend nav-menu-item-control data in Appearance > Customize?
How to extend nav-menu-item-control data in Appearance > Customize?
How to extend nav-menu-item-control data in Appearance > Customize?
How to Identify the Source of a Custom Field?
ACF won’t load from a custom JSON location
What you need to do is look at your $page and $pages variables and do the same thing with your $desc variable (and any other variable that you want to access outside of the function). You will need a global $descs which will be an array where you will place in each of the $desc … Read more
I ended up writing a bunch of MySQL statements. My process went: Add users into wp_users. Add first name into wp_usermeta. Add last name into wp_usermeta. Add nickname into wp_usermeta. Add last activity into wp_usermeta. (This is important for BuddyPress; otherwise, users won’t show up in the members-loop) Add name to BuddyPress. Add custom “phone” … Read more
Not sure if you’re still looking for an answer, but I wrote a plugin to take care of this: http://yjsoon.com/dfll-plugin I’m not sure if your using linked_list_url means you’re already using the plugin, but if you are, I just updated it. 🙂
Try using magic fields. It will let you create a custom panel for each category, where you can specify just the custom fields needed for that category. It allows you to present it all in a very user friendly way as well, as well as manuy, many, many other cool things. The plugin will change … Read more
the better way would be to create your own meta box nd to add one to your new/edit page screen you can use add_meta_box() function (look at the example at the bottom for the examples), you can also use this class which is nicely documented and does most of the job for you.
You can create as many metaboxes as you want. Use a function to create them then hook into init. The first line should be $meta_boxes = array(); then start each new metabox with $meta_boxes[] = array( add_action( ‘init’, ‘prefix_create_metaboxes’ ); function prefix_create_metaboxes() { $meta_boxes = array(); $meta_boxes[] = array( ‘id’ => ‘venue_location’, ‘title’ => ‘Venue/Location’, … Read more
When hooking the save_post action, you really need to isolate your operations so that every page/post/post_type save doesn’t try to add your post meta to the post. function foo_save(){ if(isset($_REQUEST[‘bar’) update_post_meta($_REQUEST[‘post_ID’], ‘bar’, $_REQUEST[‘bar’]); } add_action(‘save_post’, ‘foo_save’); The main issue with your code above is posts_numericalvalue needs quotes. Also, to use $post->ID you will need to … Read more