• Resolved Mirko Lamberti

    (@mirkolamberti)


    Hi,
    I’ll renew my happyness for this plugin. I really like a lot. It have a lot of possibility of implementations.

    I’m building two presents for list a series of news.
    The first list the last 3 news using [post_thumb size=”full”].
    The second list last 25 news using [post_thumb size=”thumb”].

    Is there a manner in the second list to skip first 3 item finded? Now the result is a duplicate of last 3 news.

    Many thanks
    Have a great week
    Mirko

    https://wordpress.org/plugins/advanced-post-list/

Viewing 10 replies - 1 through 10 (of 10 total)
  • There is no easy programmatic way. It is probably possible to hide the first three “children” of a list using CSS. Google is your friend.

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    Is Google a better friend than the creator of Plugin? I think no 🙂

    How does it work the “Exclude Duplicates from Current Post” option?
    Is possible for you to save the IDs post even for more than one occurrence lists in the page? I suppose that can be a solution, but – clearly – I don’t know.

    Here a printScreen: https://copy.com/JkXyfk1xRmUB8YMC

    Have a great day and remember: I’m rooting for you!

    Hi this is my solution, using the [item_number offset=”1″ increment=”1″] shortcode and CSS. Example:

    Before list:

    <style>
    .image_1 img, .image_2 img, .image_3 img{
      float:left;
      padding-right:10px;
    }
    
    .image_4 img, .image_5 img, .image_6 img{
      display:none;
    }
    
    .block-container-column{
         padding-top:10px;
         padding-bottom:0px;
         height:100%;
         overflow:hidden;
    }
    </style>

    List content:

    <div class="block-container-column">
    	<a href="[post_permalink]"><div class="image_[item_number offset="1" increment="1"]"><img width=110 height=110 src="[post_thumb size="thumbnail" extract="none"]"></div>
    	<div class="block-subtitle-column">[post_title]</div></a>
    	[post_excerpt  length="80"]<hr/>
    </div>

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    You are a genius, many thanks for the idea!
    I’ve just a little bit modify the code because if I’ve got more than 6 record to show, I must modify CSS with all classes of images.
    So here the code that I wrote starting from yout fantastic idea.

    Many thanks

    Before list:

    <style>
    .divnews_1, .divnews_2, .divnews_3 {
    	visibility: hidden;
    	width: 1px;
    	float: right;
    }
    </style>

    List content:

    <div class="block-container-column divnews_[item_number offset="1" increment="1"]">
    	<a href="[post_permalink]">
    		<div class="block-subtitle-column">[post_title]</div>
    	</a>
    	<p>[post_excerpt  length="80"]	</p>
    </div>

    In this manner I can create a list with only first 3 record and formatting it as I want, than create a second view (this that I report here) that hide first 3 records and print the other.

    The lines of CSS with with and float parameter are there because only visibility parameter will leave a blank space.

    Many thanks and have a great day!
    See you soon!

    Mirko

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    You are a genius, many thanks for the idea!
    I’ve just a little bit modify the code because if I’ve got more than 6 record to show, I must modify CSS with all classes of images.
    So here the code that I wrote starting from yout fantastic idea.

    Many thanks

    Before list:

    <style>
    .divnews_1, .divnews_2, .divnews_3 {
    	visibility: hidden;
    	width: 1px;
    	float: right;
    }
    </style>

    List content:

    <div class="block-container-column divnews_[item_number offset="1" increment="1"]">
    	<a href="[post_permalink]">
    		<div class="block-subtitle-column">[post_title]</div>
    	</a>
    	<p>[post_excerpt  length="80"]	</p>
    </div>

    In this manner I can create a list with only first 3 record and formatting it as I want, than create a second view (this that I report here) that hide first 3 records and print the other.

    The lines of CSS with with and float parameter are there because only visibility parameter will leave a blank space.

    Many thanks and have a great day!
    See you soon!

    Mirko

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    You are a genius, many thanks for the idea!
    I’ve just a little bit modify the code because if I’ve got more than 6 record to show, I must modify CSS with all classes of images.
    So here the code that I wrote starting from yout fantastic idea.

    Many thanks

    Before list:

    <style>
    .divnews_1, .divnews_2, .divnews_3 {
    	visibility: hidden;
    	width: 1px;
    	float: right;
    }
    </style>

    List content:

    <div class="block-container-column divnews_[item_number offset="1" increment="1"]">
    	<a href="[post_permalink]">
    		<div class="block-subtitle-column">[post_title]</div>
    	</a>
    	<p>[post_excerpt  length="80"]	</p>
    </div>

    In this manner I can create a list with only first 3 record and formatting it as I want, than create a second view (this that I report here) that hide first 3 records and print the other.

    The lines of CSS with with and float parameter are there because only visibility parameter will leave a blank space.

    Many thanks and have a great day!
    See you soon!
    Mirko

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    You are a genius, many thanks for the idea!
    I’ve just a little bit modify the code because if I’ve got more than 6 record to show, I must modify CSS with all classes of images.
    So here the code that I wrote starting from yout fantastic idea.

    Many thanks

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    You are a genius, many thanks for the idea!
    I’ve just a little bit modify the code because if I’ve got more than 6 record to show, I must modify CSS with all classes of images.
    So here the code that I wrote starting from yout fantastic idea.

    Many thanks

    Before list:

    <style>
    .divnews_1, .divnews_2, .divnews_3 {
    	visibility: hidden;
    	width: 1px;
    	float: right;
    }
    </style>

    List content:

    <div class="block-container-column divnews_[item_number offset="1" increment="1"]">
    	<a href="[post_permalink]">
    		<div class="block-subtitle-column">[post_title]</div>
    	</a>
    	<p>[post_excerpt  length="80"]	</p>
    </div>

    In this manner I can create a list with only first 3 record and formatting it as I want, than create a second view (this that I report here) that hide first 3 records and print the other.

    The lines of CSS with with and float parameter are there because only visibility parameter will leave a blank space.

    Many thanks and have a great day!
    See you soon!

    Mirko

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    🙂

    Thread Starter Mirko Lamberti

    (@mirkolamberti)

    You are a genius, many thanks for the idea!
    I’ve just a little bit modify the code because if I’ve got more than 6 record to show, I must modify CSS with all classes of images.
    So here the code that I wrote starting from yout fantastic idea.

    Many thanks

    Before list:

    <style>
    .divnews_1, .divnews_2, .divnews_3 {
    	visibility: hidden;
    	width: 1px;
    	float: right;
    }
    </style>

    List content:

    <div class="block-container-column divnews_[item_number offset="1" increment="1"]">
    	<a href="[post_permalink]">
    		<div class="block-subtitle-column">[post_title]</div>
    	</a>
    	<p>[post_excerpt  length="80"]	</p>
    </div>

    In this manner I can create a list with only first 3 record and formatting it as I want, than create a second view (this that I report here) that hide first 3 records and print the other.

    The lines of CSS with with and float parameter are there because only visibility parameter will leave a blank space.

    Many thanks and have a great day!
    See you soon!

    Mirko

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Great Plugin – Is there an Offset parameter’ is closed to new replies.