Pagination and image
-
Thanks again for this great plugin, I have 2 questions more :
– When using pagination, is it possible, that its NOT loading the whole page when go to next page.. in some section maybe..?
– When a bloggers post is missing an postimage, is it possible to set a default image to use, so there will not be empy space ?
Thanks for all help
Jan
The page I need help with: [log in to see the link]
-
Question 1 – You mean list different amounts per page? If that’s so as of right now it’s not possible. WordPress doesn’t work that way.
Question 2 – There is no shortcode way right now. Will look adding this feature in the future.
Hi
Question 1 – You mean list different amounts per page? If that’s so as of right now it’s not possible. WordPress doesn’t work that way.
What I mean is, that when you click on “next” (lets say page 2), then its not only changing the posts to page 2, it also reopen the entirely page. What I am looking for is, that the page stays the same, and only changes the posts. Like in many magazine themes.
Jan
Yes because it is a different page. But show me an example of both. Because when you go to page two it’s an actual page. But if I see what you are looking for I’ll see if I can do it.
I have added the featured image option and will be available in the next update. Give me time on your first question.
I have added the following arguments to the new version 7.1.7 below:
# Network Posts Extended v7.1.7 New attributes: 1. load_posts_dynamically='(true/false)' - allows to load posts without refreshing page. Default false. 2. posts_preloader_icon='(url to icon)' - Set custom icon url. This icon is displayed while posts are loading if "load_posts_dynamically" is true. 3. show_preloader_icon='(true/false)' to hide default spinning icon. Default true. 4. default_thumbnail='(url to default image)' - Must be the full url to the image you want to use.Please test it out and let me know.
There is a little quirk that the new pagination shows on archive pages. Will come up with something. Other than that it’s working.
Thank You for doing all this, so great that You are updating your plugin with new stuff 🙂
Jan
For the issue #1,
Ive put in your code for dynamic load, this is still opening up the whole page, when clicking NEXT) https://gyazo.com/70827cca9026070270b34b8744a10b38
Its also just showing the load icon, and this keep running.
I only used this:
load_posts_dynamically=’true’Jan
Do you have
paginate='true'in the shortcode?Yes;
<div class=”net-col-post”>
[netsposts wrap_start=’
<div class=”post-entry-content”>’ wrap_end='</div>
‘ align_image=’left’ use_layout=’inline’ exclude_blog=’1′ days=’30’ post_type=’post’ thumbnail=’true’ size=’400×300′ image_class=’network-left-image’ hide_excerpt=’false’ auto_excerpt=’true’ excerpt_length=’30’ show_author=’false’ date_format=’j. F Y’ page_title_style=’bold’ must_include_categories=’mor, boern, todo, krea, hjem, mad’ order_post_by=’date_order desc’ paginate=’true’ load_posts_dynamically=’true’ read_more_text=’Læs mere’ link_open_new_window=’true’ include_link_title=’true’ meta_info=’true’ list=’6′]</div>
This is the whole code from section,…
Jan
As of right now the dynamic links (because of JSON) can only work once per page. That is if you want to use the dynamic links the shortcode can only be shown once on any given page. If you want to use multiple instances then you must not use dynamic links.
Okay I’m working on a fix to the problem above. I will allow multiple instances in the next update.
Thanks for your patience. 🙂
Okay when you want to make the reloads dynamic without refreshing the page and have multiple instances of the npe shortcode on the same page you must assign it an ID.
So for example the following two will be added to each shortcode instance.
load_posts_dynamically='true' shortcode_id='npe-1'If you have a second shortcode with dynamic links that must get its own unique ID. So the second instance of a shortcode further on down the page would like such:
load_posts_dynamically='true' shortcode_id='npe-2'Let me know if this works. 🙂
The topic ‘Pagination and image’ is closed to new replies.