Home>Support>Post loop widget and pagination

Post loop widget and pagination

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

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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.

  2. 8 years, 4 months ago Private Message - Boris

    This is a private message.

  3. 8 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Thanks. Can you perhaps send us a paste of the code you’re using for the block that goes missing?

  4. 8 years, 4 months ago Boris

    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 :

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<div class="entry-content">
    		<?php
    			the_content();
            	?>
    	</div><!-- .entry-content -->  
    </div>
    

    On the screenshot you will see how I build the query. Do you think an additional argument is missing ?
    query

  5. 8 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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?

  6. 8 years, 4 months ago Boris

    Hi Andrew,
    Sorry i will try to explain better…
    This bloc is made with “post loop widget” (see screenshot).
    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.

  7. 8 years, 4 months ago Boris

    sorry, image seems to be broken… you can see here

  8. 8 years, 4 months ago Alex S
    Hi, I Work 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.

  9. 8 years, 4 months ago Boris

    Hi Alex,
    Thank you very much, you rock ! This was so easy finaly ;)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More