finding menu hierachy > wp_get_nav_menu_items

Whenever i find myself not sure what kind of data is returned by a function i use my simple ready made var_dump_pre() function which i use heavily in developments, simply paste it in your theme’s functions.php file. function var_dump_pre($obj){ echo ‘<pre>’; var_dump($obj); echo <‘/pre>’; } Usage say i want to see what wp_get_nav_menu_items actually returns: … Read more

Dynamic Image Links Depending on Excerpt/’Single Post’ View

If I understand it correctly, in you index.php you want to link the image to the full post. You can accomplish that by adding this to your index.php: <a href=”https://wordpress.stackexchange.com/questions/24537/<?php the_permalink() ?>” alt=”<?php _e(‘Read full article’, ‘theme’);?>” title=”<?php _e(‘Read full article’, ‘theme’);?>”><?php the_post_thumbnail(‘name-thumb’); ?></a> assuming that you use the featured image to show the image … Read more

Exclude function from homepage only?

Based on your pastes, i think what you’re going for is.. function cp_do_pagination() { if( is_home() || is_singular() /* || is_front_page() */ ) return; global $post; // <– do you need this for something in particular? if( !function_exists(‘appthemes_pagination’) ) return; appthemes_pagination(); } The is_singular() function covers is_page(), is_single() and is_attachment(), so no need for the … Read more