PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Filter posts by Author for single category

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
12

We have one category called Kolumne at our web site: https://cutt.ly/YMqwUJd

Posts in this category have different Authors.

Is it possible to add filter Author for posts only in this category?
Also, we will like to keep same posts layout that is now.
We need only filter option, not design change option.

Regards

Hello

Yes. You can create a filter (mdtf category) with only one element: Filter by author.

Add this filter to the widget. to assign the current post category - https://wp-filter.com/howto/filter-products-based-current-term-custom-taxonomy/

To display the widget only on a specific category page - https://wordpress.org/plugins/widget-options/

Also, we will like to keep same posts layout that is now. - This could be the problem. The current template may not hear search queries - https://wp-filter.com/howto/get-search-arguments-action-page-hack-portfolio-shortcode/

You can try  a  free  version - https://wordpress.org/plugins/wp-meta-data-filter-and-taxonomy-filter/

Hello can i can this widget as a shortcode?

here is what I have done, but don't know hot to create this filter: https://prnt.sc/KdEHLCnNQJK4

Do you have any tutorial or example how I can create author filter for posts?

Hello

 can this widget as a shortcode? - Yes. With  widget OR  shortcode

 but don't know hot to create this filter: - My short video - https://c2n.me/4h5r3Nz

I recommend watching these videos - https://wp-filter.com/video-tutorials#video_1291  and https://wp-filter.com/video-tutorials#video_1293

Unfortunately, this plugin is difficult to set up, so for effective work you should watch video tutorials

Hello,

Thanks a lot for your reply.

I have done same as in this video: https://c2n.me/4h5r3Nz

Here are my settings: https://prnt.sc/sddH6IaEs28Y

Also, I have created shortcode for this filter: https://prnt.sc/kp3N1kGvr0tC
But I can not find to check here option for search by authors.

There is only an option to search by category and tags.

Regards

Sorry, i know this is too easy for a most members of this forum.

But I was not able to do it, any location where I can see a button to add additional taxomies is soft panel.

Regards

hello

It's really not that easy, that's the reason I gave you the video tutorial links - https://share.pluginus.net/image/i20221111092909.png - Please watch these videos and you will be able to create a filter

I'm embarrassed to admit that I watched both videos, but I couldn't figure out how to add a filter.

Can you give me some guidance as to where this is shown in the video, at what minute mark?

I found the option to create a custom taxonomy (location), but the taxonomy for the author already exists

Hello

, but the taxonomy for the author already exists - Filter by author is not a taxonomy

  1. create filter by author - https://prnt.sc/sddH6IaEs28Y
  2. create MDTF category with this filter - https://c2n.me/4h7fvUl
  3. Assign MDTF to your posts - https://share.pluginus.net/video/v20221114083438.mp4
  4. To  show  filter  you  can use  shortcode or widget - https://c2n.me/4h7fK5n

Hello, thanks for the explanation.

I was missing step 3.
Now it is showing authors list here: https://cutt.ly/YMqwUJd

But we have huge number of users: https://prnt.sc/NEpDB-Z9ooUd
Can we show up just users with AUTHOR role?
Or can we show just authors that have posted in this specific category?

Filter the author field to show only those who have authored posts with that category.

Hello

Try  in  file  -  wp-content\plugins\meta-data-filter\views\shortcode\do_mdf_search_form.php add  code - https://share.pluginus.net/image/i20221115090720.png

$users = get_users(array('count_total' => false, 'role__in'=>array('editor', 'author'), 'fields' => array('ID', 'display_name', 'user_nicename')));

and  in file -  wp-content\plugins\meta-data-filter\views\page\draw_front_page_items.php - add  code -  https://share.pluginus.net/image/i20221115090847.png

$users = get_users(array('count_total' => false, 'role__in'=>array('editor', 'author'), 'fields' => array('ID', 'display_name', 'user_nicename'),));

clear  all cache  and  do a test

Hello,

I have done changes, and now it is showing only Authors, which is working well.
But it is showing usernames, is it possible to show names? https://prnt.sc/u8BkYkcyL6O6

 

Can we show only posts from specific categories? Because we use this filter only in one category.
category/kolumne/

 

Can we make this select box and filter button in the same line? https://prnt.sc/3al9tKk9job0
I have tried all options here: https://prnt.sc/sAAVwaXvYMzd but it is always the same. Or can we use just select (without filter button).

 

After clicking on the Filter button, the user gets redirected to frontpage: https://cutt.ly/YMqwUJd
Even if I set the category link here: https://prnt.sc/qblXSoT5EFyz

Hello

But it is showing usernames -  try  in file  - wp-content\plugins\meta-data-filter\views\page\draw_front_page_items.php - change  code - https://c2n.me/4h8sp9V.png

$user->display_name

Can we show only posts from specific categories  -   Please read  this - https://c2n.me/4h8stjn.png - this is for the filter.

Can we make this select box and filter button in the same line? - You need CSS customization. Or - https://wp-filter.com/howto/create-custom-skin-search-shortcode/

Or can we use just select (without filter button). - This is only available in the paid version of the plugin.

After clicking on the Filter button, the user gets redirected to frontpage: - I recommend watching these videos - https://wp-filter.com/video-tutorials#video_1291  and https://wp-filter.com/video-tutorials#video_1293

 

 

Hello there,

Thank you for your reply.

I found that most of these suggestions, das do not work on my website.

  1. But it is showing usernames -  try  in file  - wp-content\plugins\meta-data-filter\views\page\draw_front_page_items.php - change  code - https://c2n.me/4h8sp9V.png

$user->display_name

I have done these changes, here is a screenshot: https://prnt.sc/QB02iQuG5YsU    but after cleaning cache, do usernames still show up: https://prnt.sc/jVJxIxKC3lVg

2. Can we show only posts from specific categories  -   Please read  this - https://c2n.me/4h8stjn.png - this is for the filter.

At this link: https://wp-filter.com/howto/filter-products-based-current-term-custom-taxonomy/ I was unable to find an example for the category, so I added it like this: https://prnt.sc/2qxXhN_IaIYphttps://prnt.sc/1Sl8aGs9lzAm, but that das not work.

3.  After clicking on the Filter button, the user gets redirected to frontpage: - I recommend watching these videos - https://wp-filter.com/video-tutorials#video_1291  and https://wp-filter.com/video-tutorials#video_1293

I have add here category page style: https://prnt.sc/TOjrKzu2_MMo , but after that filter das not working, whatever author I select, it is showing latest posts from all authors: https://prnt.sc/vLuiRhuXZF3H , as you can see: https://cutt.ly/YMqwUJd

hello

  1.  try  in file - \wp-content\plugins\meta-data-filter\views\shortcode\do_mdf_search_form.php - https://share.pluginus.net/image/i20221118080918.png
  2. Sorry, I understand, the reason is that the filter by author does not have dynamic recalculation
  3. https://share.pluginus.net/image/i20221118084106.png and  check options - https://share.pluginus.net/image/i20221118084206.png

I have done changes at 1. and it is working well now,

2. Is there any way that we can limit the search to specific categories, or does every search need to take a look at all categories?

3. I have added slef here: https://share.pluginus.net/image/i20221118084206.png
But now whatever template I use, the search is not working.

Here is an example of my archive.php template: https://pastebin.com/7HhCmG9y
Can you please tell me where we should add this code to template to work:

2
3
4
5
6
7
8
9
if(class_exists('MetaDataFilter') AND MetaDataFilter::is_page_mdf_data()){    
   $_REQUEST['mdf_do_not_render_shortcode_tpl'] = true;
   $_REQUEST['mdf_get_query_args_only'] = true;
   do_shortcode('[meta_data_filter_results]');
   $args = $_REQUEST['meta_data_filter_args'];
   global $wp_query;
   $wp_query=new WP_Query($args);
   $_REQUEST['meta_data_filter_found_posts']=$wp_query->found_posts;
}

Hello

2 yes, it is possible to limit the search, but the filter will show all authors

3 Check out this template please - https://c2n.me/4haNSvt.png - you need to find the file where wp_query is generated

2. Can you please tell me how we can limit searches to a specific category? It is ok if we show authors from all categories, there is not much of them.

3. There is no other option to do this? This is look like extreme complicated for someone who don't know to code.

Hello

2)  Please  read  this - https://share.pluginus.net/image/i20221123083314.png

3) Unfortunately no. If this is a custom template, code customization is needed.

Hello,

2) I can see that this is an example of WooCommerce, I don't use woocommerce. Can you please send me an example of how to filter to a specific category?
Here is what I have try: https://prnt.sc/SrqEXaq4nUcC

3) how much are you charge for that type of customization?

Regards

12