• Resolved bjorsberg

    (@bjorsberg)


    I have search for a solution for my little problem for 2 days now with out results so I hope that someone here know how to do it.

    I’m designing my first theme for a friend and i’d like to display only text and picture and exclude the video. Or just display the video and title inside the single.php page.

    Or if it’s possible to have multiple layouts on one blog-post? Like one layout when it displays all posts and one when you display that particular blog-post (in single.php).

    I would also like the content to link to the page but I can’t figure out my self what too wright.

    sorry for the bad english but i did my best.
    Tobias Björsberg

Viewing 5 replies - 1 through 5 (of 5 total)
  • Or if it’s possible to have multiple layouts on one blog-post? Like one layout when it displays all posts and one when you display that particular blog-post (in single.php).

    Yes. That’s what the various template files (archive.php, index.php etc) are for.

    Thread Starter bjorsberg

    (@bjorsberg)

    Yes wel that I’m awear of. but i want to style what I wrote in the post different in each part.

    I use starkers theme and designing around that. But he have only linked the whole post like this “<?php the_content(‘Read the rest of this entry »’); ?>”. And I want to maybee attach just the text and the image or just the video link (vimeo).

    Is there any solution to that?

    You could use the <!--more--> tag in posts to reduce the amount of teaser text on the these pages. Or change <?php the_content('Read the rest of this entry »'); ?> to <?php the_excerpt();?> to only display the first 55 words of text. You need to first decide what you want to display and work from there.

    Thread Starter bjorsberg

    (@bjorsberg)

    Okey, but that doesen’t solve the not displaying video part.

    I found a tutorial about is_page(), could you use that in some way?

    Thread Starter bjorsberg

    (@bjorsberg)

    solved it!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘multiple layouts on the same post’ is closed to new replies.