WordPress.org

Ready to get started?Download WordPress

Forums

list page and detail page (6 posts)

  1. zapping
    Member
    Posted 1 year ago #

    Hi,
    Am using the twentytwelve theme. Is there a page that seperates out the post list page and the blog detail page? Actually i would like to add more features to the post detail page. But if i modify the content.php page it seems to be affecting the display of both the blog lists from category click and the post detail page.

    Cheers in advance.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Do not edit the Twenty Twelve theme. It is the current default WordPress theme and having access to an original, unedited, copy of the theme is vital in many situations. First create a child theme for your changes.

  3. zapping
    Member
    Posted 1 year ago #

    Oh ok thank you for the tip. Can you let me know on the other one too. How to differentiate between the display on home page click, category click and the detailed view. Currently it all comes boiling down to the content.php page. I would like to include some more info on the detailed page. And a different info on the category click page but not on the home page click.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Once your child theme is in place, you should be able to create a new single.php template file that does not use content.php.

  5. zapping
    Member
    Posted 1 year ago #

    ok, thank you. was hoping for some sort of a short-cut. Its my 3rd day with wordpress. And i have a long way to go.

    Cheers for your time.

  6. zapping
    Member
    Posted 1 year ago #

    One more please,
    I have installed a new plugin. But the functions in the plugin all just do an echo. None of it returns just the value. Now if i want to create a get_xxx_yyy() and have it return the value instead of doing the echo. Can i do it in the plugin file itself or is it a better practice to add it to my child theme's function.php.

Topic Closed

This topic has been closed to new replies.

About this Topic