Automatically add images to a menu

I guess you need this function get_the_post_thumbnail_url($menu->object_id); (provided menu item is not a custom link) $menu->ID is not the id of the post/page it is linking to. About calling meta yes it is also possible $image_url = get_post_meta( $menu->object_id, ‘meta_key’, true );

Create page (not the post type) dynamically

You need to register a ‘rewrite endpoint’ using add_rewrite_endpoint(): <?php add_action( ‘init’, function() { add_rewrite_endpoint( ‘play’, EP_PERMALINK ); } ); Now, after flushing permalinks, in whatever template or code you’re using for your products you can check this to determine whether the /play version of the URL is being accessed: <?php if ( false !== … Read more

Hide Status Option From WordPress Publish Metabox and Rename Published on:

Both those strings seem to be located in wp-admin/includes/meta-boxes.php. They don’t have any filters attached to them, so they’re not meant to be (easily) altered by your code. However, both those strings are internationalized (ie, run through a translation function) to allow WordPress’s interface to be translated into languages other than English. The i18n functions—__() … Read more

Three menus – parent / child / sibling

To list top level pages only: wp_list_pages( ‘depth=1’ ); To list children of the current page, but only if it is a top level page: if ( 0 == $post->post_parent) { wp_list_pages( ‘child_of=” . $post->ID . “&depth=1’ ); } To list children of the current page, but only if it is a child page: if … Read more

Different widgets in sidebar on sub-children pages?

I use Widget Logic at my blog. It is not most convenient solution around, but definitely one of the most flexible. Widgets can be displayed/hidden based on arbitrary PHP condition. Works great with conditional tags and when that is not enough you just write your own conditions and use them.

Read more on pages WordPress

Better to use <!–nextpage–> if you want to split content. See theme requirement: http://codex.wordpress.org/Template_Tags/wp_link_pages I don’t understand why people keep wanting “Read more” to work in Pages.

confused about wp_list_pages() function – how to display selected top pages with all their subpages

When you use include parameter of wp_list_pages you are basically telling it to only include these certain Pages in the list. you should use exclude_tree instead, when using this parameter it will exclude a parent and all of that parent’s child Pages. so something like: $top_pages_to_exclude=”1″; // the top page to be excluded ID, you … Read more