- NewsmagBlock settings tutorial
- NewsmagHow category settings work
hi,
about the feed, can you try disable all the plugins and try again, some plugins modify the feeds, also the /feed is managed by wordpress and has nothing to do with our theme.
about the duplicate post, use a different page template (with pagination) : http://screencast.com/t/pj0N7d1dTbue.
with the space at the bottom I can help you but only if you remove infinite load, because I can not reach the bottom of the page.
Thanks for you message.
Radu A.
Using module 6 on this category page gives me two columns of “posts” or app icons. It also give me a nice non-AJAX pagination at the bottom. http://appcomrade.com/category/app-reviews/featured-apps/
If I create a normal page, and then use the visual editor to create a “category page” using Blocks 3 then I get 3 columns of app icons like so http://appcomrade.com/featured-apps/
However, this Blocks 3 page only uses AJAX pagination (or load more, or infinite scroll) http://appcomrade.com/featured-apps/
How can I make the Blocks 3 block page http://appcomrade.com/featured-apps/ use the same 1,2,3……9 pagination as seen on module 6? http://appcomrade.com/category/app-reviews/featured-apps/
Happy new years,
-Octavian
The pagination issue is caused by offset parameter. I set offset argument to 5 in order not to repeat the posts in the slider. But this causes the “paged” attribute in WP_Query to be ignored. This is documented in WP Codex:
offset (int) – number of post to displace or pass over.
Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround).
Making Custom Queries Using Offset And Pagination
http://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination
I adopted the solution above to my situation as here:
Newspaper-child\functions.php
add_action('pre_get_posts', 'myprefix_query_offset', 1 );
function myprefix_query_offset(&$query) {
//Before anything else, make sure this is the right query...
$not_in_ajax_call = get_permalink();
$in_home_page = ! is_page('');
if ( $not_in_ajax_call && $in_home_page ) {
return;
}
if ( empty( $query->query['offset'] ) ) {
return;
}
$offset = $query->query['offset'];
//Next, determine how many posts per page you want (we'll use WordPress's settings)
$ppp = get_option('posts_per_page');
//Next, detect and handle pagination...
if ( $query->is_paged ) {
//Manually determine page query offset (offset + current page (minus one) x posts per page)
$page_offset = $offset + ( ($query->query_vars['paged']-1) * $ppp );
//Apply adjust page offset
$query->set('offset', $page_offset );
}
else {
//This is the first page. Just use the offset...
$query->set('offset',$offset);
}
}
-
This reply was modified 12 years by
mertnuhoglu.
Hello,
The pagination issue is some kind of incompatibility. In general the theme pagination should work well without any modifications.
Radu from tagDiv
Hi Marius,
The problem is caused by offset attribute in WP_Query as described here:
offset (int) – number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination (Click here for a workaround).
A workaround is described here.
I try to implement that solution. Any help will be appreciated.
reply to email
I still have the problem. I have just found out the post listings are repating even in infinite scroll mode. See here:
https://forum.tagdiv.com/topic/posts-are-repeated-in-infinite-scroll-feature/
I set the Block 3 component in home page as infinite scroll. Infinite scroll works but same posts are repeated in every new loading:
http://dl.dropbox.com/u/103580364/temp/000779.jpg
The web site is here:
All plugins are deactivated.
Could you please check this problem? I send the access credentials to contact@tagdiv.com
My client’s blog is http://www.feedoxy.com
Tell me a couple of things:
1. How to enable infinite scrolling?
2. On slider, I don’t wanna show recent posts, rather than I wanna show posted marked as featured.
Expecting a Quick Reply.