• Resolved thalitha

    (@thalitha)


    Hello,

    I have a page that should display the latest blog post. The layout should therefore be the same as the blog posts. I have duplicated the template for single blog posts and assigned it to this page. I placed a widget in the contents of the page to retrieve the latest blog post.

    It does work, but a lot of information is missing.

    How can I make this page [ redundant link removed ]
    look the same as this one /blog-post/do-not-hire-a-phd-student-hire-an-illustrator-2/

    Thanks in advance for any tips.

    Best regards,
    Thalitha

    • This topic was modified 4 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator threadi

    (@threadi)

    Your first link is not available. I’ll be forwarded to the login-page.

    There is a support-forum of the theme-developer where your question might be better situated: https://siteorigin.com/thread/

    Thread Starter thalitha

    (@thalitha)

    I was in a hurry and did not see that my links were not properly displayed. I’ll try it at the other forum. Thanks for your reply.

    Best,
    Thalitha

    WordPress is hierarchical based. If you want them to look the same, you have a couple of options. The first is to make sure they use the same template or make sure both templates being used look the same. If you are unsure which template is being used try using a plugin like Which Template to find out.

    Thread Starter thalitha

    (@thalitha)

    @mrtom414 Thanks for your reply. In response to threadi I posted this question on a forum of SiteOrigin too. https://siteorigin.com/thread/make-page-look-like-post/

    I know that the page and post make use of templates with the same code. That should not be the problem.

    The page and post are similar, but there are three problems left. On the page:
    1. the name of the author is not displayed
    2. the ‘Written by’ and date are above the title instead of below
    3. the date is incorrect

    I try to get the latest blog on this page using the SiteOrgin and their widget Post-loop. I think that creates problems, but I found no other way.

    This is the page: https://ethicsandtechnology.eu/blog/

    And this is the post: https://ethicsandtechnology.eu/blog-post/do-not-hire-a-phd-student-hire-an-illustrator-2/

    What can I do do differently so that I have a page that shows the latest blog in the same layouts as the blogs?

    Best regards,
    Mariska

    All your post are displayed in the WordPress loop. Each template will have its own loop. The information for the author, header, and content is echoed from within the loop. Within the loop, there are functions to display the desired output like the_content() or the_author(). You would need to add or move these lines of code to where you want them to be displayed. You can find more information here. To make changes you would first have to determine which template is being used for the post and edit it to your liking. I would suggest making a child them before doing this. Doing this in the original theme could cause you to lose your work if the theme updates.

    Thread Starter thalitha

    (@thalitha)

    Thanks for your reply. My page and blog already have the same templates and I have customised them as I wanted. However, the same template has a different result on a post than on the page. I realise now why. I call for the latest blog in the contents of the page. So when the template says get_title, then in case of a blog post it gets the title of the blog, and in case of the page, it gets the title of the page.

    I finally found the answer. I found it here Post Loop Widget – SiteOrigin I didn’t need to adapt the template of the page, but create and adapt loops/loop-blog-default.

    Now I can customise the layout and finish this page.

    Thanks for replying. Talking about this helped.

    Best regards,
    Mariska

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Make page look like post’ is closed to new replies.