Support » Fixing WordPress » How to remove post title from a single post

  • soniaz

    (@soniaz)


    Hey there,
    Is there a way to remove the post title from a single post? Can I use Custom Fields for this, and if so, how?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • threestyler

    (@threestyler)

    From one post OR all single posts?

    Thread Starter soniaz

    (@soniaz)

    one post, but both on the home page and the post’s individual page.

    Apologies for missing your reply. You can use Conditional Tags and Custom post types to style different posts.

    http://codex.wordpress.org/Conditional_Tags

    You would create a new custom post type, style it with it’s own my-post-type-template.php in your theme (excluding titles etc). And then add it to the loop:

    Something like this:

    // First query your custom post types
    query_posts( array(
    	'post_type' => 'my_post_type',
    	'post_status' => 'publish',
    );
    // Begin the Loop
    if (have_posts()) :
    	while (have_posts()) : the_post();
    // rest of loop
    	endwhile;
    endif;
    ?>

    Hopefully that will be enough to get you going then you should be able to play around with the above and tweak it until you get the desired output.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove post title from a single post’ is closed to new replies.