Hello,
I have a problem with the post loop widget…
I build a widget who call a single page in a custom sidebar. This widget is well shown on all pages where sidebar is called. The problem is when I go on the archive page of my custom post type… I can always see the post loop widget on the first page but it disappear when I go on the other pages…
I hope i’m clear ;)
Thank you for any help.
Boris
Hi Boris
Thanks for reaching out.
Do you have a public URL where we can take a look at what’s going on? If you need to keep this URL private from other users, just select “Private Reply” on the bottom right of the comment box.
This is a private message.
Thanks. Can you perhaps send us a paste of the code you’re using for the block that goes missing?
Hello,
Sorry but I don’t understand which code would you like to have…
This bloc use a specific template part, maybe this is what you talk about. Here is the code :
On the screenshot you will see how I build the query. Do you think an additional argument is missing ?
Sorry for not being clearer. I’m asking how the following is being added:
bloc “Séminaires”, under the 4 rooms, disappear
How are you adding that block?
Hi Andrew,
Sorry i will try to explain better…
This bloc is made with “post loop widget” (see screenshot).
In this widget, I use a query which call only one page ID (see screenshot in my last message). And I use a custom template for showing this page (code is above).
This widget is add in a custom sidebar which is call in my footer.php.
sorry, image seems to be broken… you can see here
Hi Babouz,
Please open up the post loop widget, click build post query and set the posts per page to -1. That should resolve this issue for you. We’ll look into methods of automating this in the future.
Hi Alex,
Thank you very much, you rock ! This was so easy finaly ;)