• Hi Guys,
    So just moved to WP and also for the first time ever I am trying to add a blog page to a commercial website.
    I am using Elementor and have added the archive page, but now confused on where I add new posts, is that also in Elementor or from the WP Dashboard?

    I want to have the blog accessible from the main site menu which it now is, this takes me currently to the archive page if I then write a post in WP I get the link to the new post page in that Archive page, but I want to just go directly from the menu bar to all the current posts.
    Think I am setting this up all wrong…..

    • This topic was modified 4 years, 11 months ago by Jan Dembowski.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    Welcome to the WP community! You use both. From the dashboard admin bar at top, select “New > Post”. From there I believe there is an “Edit with Elementor” pick.

    I think you may want to be adding new pages if you want them all linked from the nav menu. They do not show up in archive lists, but that is relatively easy to change with a bit of code. Pages are the only thing that WP will automatically add to nav menus.

    I’m assuming your pages will be relatively limited. You don’t want dozens of menu items on the main menu level. Usually there are soon many dozens of blog post entries, so having them all in the menu quickly becomes cumbersome. If you want the menu to have sub-menus which can better lead to many posts or pages, it needs to be manually constructed.

    You can also set a specific page to be the front page in settings so the first thing visitors see is a page instead of an archive list. This page is not necessarily “static” even though that is what it is called in settings. Its template can dynamically do all manner of things if programmed to do so.

    Thread Starter blueflare

    (@blueflare)

    Thanks for the heads up, previous to your reply I managed to get a blog page made, and have dropped the idea of having it accessible from the main menu.
    Instead, I have added another section on my home page which displays the posts with the option to read more. I hope this works ok under the hood as it were.

    One question raised by doing that, as more posts are added the section will get too long, can I limit that? and how would the reader then find the older posts?

    Thanks again

    Thread Starter blueflare

    (@blueflare)

    Following on from that I found the Post Except widget and placed that on the page, but I cannot get it to show anything

    Moderator bcworkz

    (@bcworkz)

    I’m not familiar with that excerpt widget. It’s likely not working because the page uses a custom query to show posts. Such widgets often assume they should operate on the main query. Whatever code is causing the posts to be output could be modified to show excerpts instead of full content.

    You can limit how many posts get listed by modifying the query args used. The query defaults to whatever the post per page setting is in your admin settings. The problem is dealing with pagination to get to subsequent posts. Like widgets, most pagination functions usually assume they operate on the main query. With custom queries you have to somewhat manage the pagination yourself. The function paginate_links() can output usable pagination links, but the query must be modified to work with the links it generates. There are some good examples in the User Notes at the bottom of the linked docs page.

    Thread Starter blueflare

    (@blueflare)

    Hi, thanks for your reply, being a new user to WP a lot of what you were saying went over my head as I try to learn the WP way.
    However I managed to get the Elementor excerpt widget working and all is now fine, I think I may have confused myself somewhere as I set it all up again and it worked.
    Thanks again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adding Blog page to website’ is closed to new replies.