Tell us what you are trying to do?
I'm building a page for a client who wants to be able to add their own projects to a page, they can now add projects, they also want to be able to categorize each project with a specific category like these: ongoing project, unfinished projects, this years project a.s.o and with this then show all the projects that all have that category on it. The view is outputted to a page and I've used the "Search & pagination" setting to add an option for the users to categorize the projects. The issue I have is that I can only use a: dropdown, radio button & checkbox row option I want to use a simple anchor tag around each category item, can't I display the options with anchor tags in a row instead or am I doing this wrong? I don't want to use a submit button, I want the user to be able to choose the categories just by clicking on them.
Is there any documentation that you are following?
I've tried to follow your YouTube videos and documentation.
Is there a similar example that we can see?
No Haven't found one yet.
What is the link to your site?
We don't have a public one yet.
Thank you for contacting us and I'll be happy to assist.
If you'd just like to exclude the need for a "Submit" button, you can remove its code ( [wpv-filter-submit output="bootstrap"] ) from the "Search and Pagination" section and then select the option "Update the View results every time an input changes".
( screenshot: hidden link )
In case, you'd like to present only the link for each category and not the search filtering fields ( e.g. dropdown, radio button & checkbox etc ), You can follow these steps:
2. In the content template section of this new taxonomy view, you can add following content that automatically generates the link for each category with its title and slug, passed in parameter "wpv-category":
Note: replace LINK-TO-PAGE with the actual link to the page, where you've added the original view that shows the projects.
3. In your view for projects, remove any existing filters from the "Query Filter" section and add a new one that filters the results based on the category slug, passed through a URL parameter "wpv-category".
( example screenshot: hidden link )
4. You can then insert your newly created taxonomy view on top of the projects view, which will show a list of category terms. Clicking the link will show the same page, but with only the results from the clicked category.
I hope this helps and please let me know if you have any question about these steps.
seems to not work properly, I've added in the code to the project view for the categories (in the loop item section), but this is the only thing that the inspector is outputting: