Pagination problem

Posted in: Newspaper
Post count: 4

Hi,
I added the below code in the td_data_source-php under //init the array to limit the posts on a very specific block on the page. It works great on the page. However, if I use paginatino and flip to the next page it somehow seems to forget the specific array which I have added and all posts show up again in the block.
How can I avoid this?

if (is_page(‘dashboard-giveaways-enter’)) {
$fav_array = wpfp_get_users_favorites(bp_get_member_user_id());
$wp_query_args = array(
‘ignore_sticky_posts’ => 1,
‘post_status’ => ‘publish’,
‘post__not_in’ => $fav_array,
);
} else {
$wp_query_args = array(
‘ignore_sticky_posts’ => 1,
‘post_status’ => ‘publish’,
‘meta_query’ => array(
),
);
}

Post count: 22421

Hello,

Unfortunately this represents customization of the them files and that is not covered by the theme support sorry. We suggest getting help from a freelancer/developer as we do not have a customization department so we cannot help with code customization. We try to help out where we can but we cannot tackle time consuming tasks.

Thank you for your understanding !

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.