Custom user filter in FlexBlock for user page

Posted in: Newspaper
Post count: 7

Good afternoon.
I’m using the Newspaper theme with the UsersWP plugin, this plugin works nicely with Deodirectors from the same developer.
The plugin has a user page with tabs where you can use your shortcodes.
I managed to use the FlexBlock1 shortcode and implement a filter for it by the user whose page is currently being viewed.
Userswp implements the function $user = uwp_get_user_by_author_slug();
I was able to add a check to the filter for the FlexBlock:
if ($authors_id == ‘my_page’) {
$user = uwp_get_user_by_author_slug();
$wp_query_args[‘author’] = $user->ID;
} else
if (!empty($authors_id)) {
$wp_query_args[‘author’] = $authors_id;
}
This works correctly for me, but there was a problem with pagination (it doesn’t matter infinite, load more).
The first page loads correctly, but when pagination is triggered, the filter is lost and posts of all users are displayed.
Please tell me which way to look to solve this problem.
Thanks!

Post count: 7

Check user filter insert to td_data_source.php

Post count: 21065

Hello Alex!

Please note that customization is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For customization and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you for understanding!

Post count: 7

This page not found and redirect to https://tagdiv.com/web-development-services/

Post count: 21065

Hello Alex!

Yes. There you can request a quote.

Thank you!

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