Skip Navigation

[Resolved] Filtrar contenido de las vistas con filtros

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 9 replies, has 2 voices.

Last updated by adriaB 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#923170

He creado una template con diferentes vistas y me gustaría poder filtrar la información por Autor.

He creado un filtro para los autores con la intención que me muestre las publicaciones del autor seleccionado.

Cuando selecciono el autor me sigue mostrando todo.
hidden link

No se que estoy haciendo mal.

Gracias.

#923314

Hello,

This is English support forum, please elaborate the question in English, thanks

#923488

I have created a template with different views and I would like to filter the information by Author.

I have created a filter for authors to show the publications of the selected author.

When I select the author does nothing.
hidden link

I don't know what I'm doing wrong.

#923845

As I know, there isn't built-in post author field in the Views custom search form?
How do you setup the author filters? it seems to be a custom field,
Please describe detail steps to duplicate the same problem.

#924092

Yes it is a custom field.
How do i have to do it?

#924475

I assume we are talking this:
1) A custom select field( for example "autor-field"), using some author names as options
2) You are going to use above field "autor-field" in the custom search form, and filter by the wordpress post author

There isn't such a built-in feature within Views plugin, it needs custom codes, you can try with Views filter hook:
https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_query

To apply the author filter to query:
https://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters

If you need more assistance for it, please provide a test site with the same problem, I can setup a demo for you.

#924567

I have checked the URL you mentioned above, here are what I found:
1) The AJAX search form feature works only when you output the search form and search result within one single shortcode [wpv-view].
So you will need to disable the AJAX search, and add a submit button to the search form.

2) It seems you have setup two different post views, their IDs are: 21129 and 21105, one is for the search form, another is the search result, that will conduct other unexpected result.
You just need to setup one single post view, display the search form in the widget, and display the search result in the content area, see our document:
https://toolset.com/documentation/user-guides/front-page-filters/#vfmh-display-the-filter-in-widget

If you still need assistance for it, please provide your website credentials, I can setup a demo for you.

#948055

I assume the original question of this thread has been resolved:
When I select the author does nothing.
https://toolset.com/forums/topic/filtrar-contenido-de-las-vistas-con-filtros/#post-923488

For the new question:

but I don't like the design.
I would like it to look like the image.

Please follow our document to design the layouts of your website:
https://toolset.com/documentation/user-guides/learn-how-rows-can-displayed-different-ways/

If you still need assistance for it, please create new thread for the new question, and the credentials you provided above is not valid, I get this error:
Error: Datos incorrectos
Please make sure it is valid.

#948093

Thank's Luo Yang