How can I automatically add child pages to pages in a WP menu?
Simply put: no. If you want dynamic updating of your menu items, you would probably be better-served using wp_list_pages() or wp_page_menu().
Simply put: no. If you want dynamic updating of your menu items, you would probably be better-served using wp_list_pages() or wp_page_menu().
First you need to get all the categories that don’t have parents (top-level categories). We’re going to use get_terms for this. Get terms will either return an empty array, a WP_Error object, or an array of objects representing terms. So we need to make sure our call works before continuing as well. <?php // very … Read more
I suggest using the Advanced Custom Fields plugin for this. You can use it to add other entry fields to a post type (in this case, you’d probably want to add it to the Page type). In your case, you would probably want two other Wysiwyg Editor fields so you can write with formatting. The … Read more
You could use the autocompleter plugin. It does exactly what you describe: it autocompletes half-typed tags and categories. You’d just need to tag your recipes with their ingredients.
Do you have any output code we can reference? Put this in your Theme file: <img src=”https://wordpress.stackexchange.com/questions/45576/<?php get_the_value(“imgurl’); ?>” style=”width:100px;height:100px” /> if you have multiple you’ll have to go through a foreach loop: <?php foreach ($meta[‘imgurl’] as $img ) { echo ‘<a href=”#” /><img src=”‘. $img .'” /></a>’; } ?> Hope this helps, I don’t … Read more
Theory As WordPress doesn’t have some sort of geolocation detection script built in, we’ll have to make our own. As this script is javascript, we then need to get the resulting location data to php. Then we’re able to do a request or add something to our request. I’ll now give you parts of code, … Read more
If you want to produce a page in WordPress whose structure and content are dynamically generated independent of the regular posts handling mechanism then: Create a new page with title “My Custom Page“. This generates the page slug ‘my-custom-page‘ by default. In the root of your active theme folder eg. \wp-content\themes\twentyeleven\ create a page template … Read more
Looks like your “local” “pretty close” and “further away” is only title text on the page and is not actually linking somewhere. You can simply make each venue into a post and under “local” “pretty close” and “further away”, add a link to the post after their description/introductions. This way they retain their category titles … Read more
The problem is that you have way too many buttons… I had the same problem with a plugin I created but I had only 21 buttons – and you have 41 buttons… The solution would be to split them in two: add the first 20 buttons to the 3rd row (mce_buttons_3) and the next 21 … Read more
You need to make sure that jQuery is loaded, so that you can use it. In functions.php: function namespace_enqueue_scripts() { if ( is_page( ‘slug-of-new-page-you-are-creating’ ) ) wp_enqueue_script(‘jquery’); } add_action( ‘wp_enqueue_scripts’, ‘namespace_enqueue_scripts’ );