• I am looking for to modify the loop of posts to display all blog posts in my multi sites installation.

    I can’t find the hook that allows you to pass a list of posts when the page is is_home()

    switch to blog is ok, but post_id always 1

    • This topic was modified 1 year, 10 months ago by norico.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @norico,

    Please check this page and see if you find anything useful for you.

    Kind regards,
    Herman 😊

    Thread Starter norico

    (@norico)

    I have already check this site.
    There is no information on the management of multisites.

    Hi @norico,

    OK, coud you please let us know what you are trying to achieve? Is there any specific steps to replicate this?

    Kind regards,
    Herman 😊

    Thread Starter norico

    (@norico)

    ok

    I’ll give you a simple example.

    I have a multisite with 3 subsite.

    Each subsite displays its blog with the standard loop.

    I want on the homepage of the site to display (as on the blog pages) the articles of each subsite, naturally with a sorting as on the blogs.

    The problem is that I change the query loop by default, so I have $query->have post()

    I hope I have been clear.

    Thanks

    Hi @norico,

    You might want to try using the Post Grid Block of our Spectra plugin.

    I hope it will help.

    Kind regards,
    Herman 😊

    Thread Starter norico

    (@norico)

    post grid don’t work.
    I ended up taking back the problematic templates.

    These use the get_the_ id() function, and it always goes up id=1. I try to make sure to replace in the templates get the id with $post->id where post is passed as an argument of the call to the template.

    To be continued…

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

The topic ‘Multisite blog loop’ is closed to new replies.