This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Post loop widget and pagination

9 years ago · Last reply by Boris 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

9
  1. Andrew Misplon Staff 9 years, 9 months ago

    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. Boris Private 9 years, 8 months ago

    This is a private message.

  3. Andrew Misplon Staff 9 years, 8 months ago

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

  4. Boris 9 years, 8 months ago

    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. Andrew Misplon Staff 9 years, 8 months ago

    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. Boris 9 years, 8 months ago

    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. Boris 9 years, 8 months ago

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

  8. Alex S Staff 9 years, 8 months ago

    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. Boris 9 years, 8 months ago

    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.

Have a different question or issue?

Start New Thread