Tag Info

New answers tagged


I found this in the Conditional Tags codex, section 2.12: "Note: There is no function to check if a page is a sub-page. We can get around the problem: if ( is_page() && $post->post_parent > 0 ) { echo "This is a child page"; } So I've altered it as below and will just use the wp_list_pages function's "title_li" attribute to ...


Based on the comment exchange, here's what I think you're after: <h1><?php echo get_the_title( $post->post_parent ? $post->post_parent : $post->ID ) ?></h1> <?php if ( $list = wp_list_pages( "echo=0&child_of=$post->ID" ) ) : ?> <h2>Select a sub-page</h2> <ul> <?php echo $list ...


<?php if ( $post->post_parent ): ?> <h1><?php echo get_the_title($post->post_parent); ?></h1> <h2><?php the_title(); ?></h2> <?php else: ?> <h1><?php the_title(); ?></h1> <?php if ( get_pages( array('child_of' => $post->ID) ) ): ?> <h2>select a sub-page</h2> ...


Since individual entries in taxonomies are terms, the template tag for displaying them, used between the_title() and the_content() hint-hint, would be the_terms() :)


The problem is pretty simple: Some widgets do have a title, while others don't. As long as the title filter is present, it works. Example of what the plugin might have: echo apply_filters( 'widget_title', $instance['title'] ); If that filter is not present, there won't be a title.


You can try this: /** * Modify the header title on single pages * but exclude the 'post', 'attachment' and 'page' post types. * * Header Title: Site Name | Post Type Label | Post Title * * Example: My Shopping Site | Products | Sony Playstation 4 */ function wpse_141145_wp_title( $title, $sep ) { if( is_single() && 'post' !== ( ...


I think the better way to use this plugin - http://wordpress.org/plugins/faster-image-insert/ We have a photo website and we use this plugin for a bulk uploading and bulk editing image attributes. You can run action that will change all your titles in way soccer1, soccer2. You also can change the order of your images and rewrite titles again.

Top 50 recent answers are included