• Resolved luucasantosg

    (@luucasantosg)


    First of all, Congratulations on the excellent plugin. The best portfolio plugin I’ve seen so far.

    I have the following question: I work with design and send my portfolio to freelance sites. Some customers prefer certain categories, such as SEO and Web design, for example. I would like to customize my portfolio, ordering and displaying the works of interest to the client first and displaying the categories with less relevance later.

    I noticed that the Visual portfolio has an amazing query string filter function, so I can filter only a certain category, copy the link, shorten the URL, and send it to my clients. Follow the example below:

    https://mysite.com/portfolio?vp_filter=portfolio_category:web-design

    What I would like to know via URL is whether it is possible to filter the categories in the portfolio by sorting projects by interest categories (such as SEO and Web design) first and displaying projects from other categories later (instead of not showing more results). This functionality would be incredible, as it will help:

    – Deliver exclusive content, meeting the needs of each client
    – It would increase the engagement and relevance of the portfolio, something that can be decisive when a client sends a job offer and there are several portfolios to analyze.

    Example URL:
    https://mysite.com/portfolio?vp_filter=portfolio_category:web-design,seo

    This URL above would sort the Web Design or SEO projects first, and display the rest later (Social media, Ads, etc.)

    Finally, I would like to know if this functionality is possible with a plugin (natively or by editing code). It is not completely essential, but it would deliver a wonderful user experience.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nK

    (@nko)

    Hey.

    Thank you for your kind words.

    Unfortunately, it is not possible with the plugin and I don’t know how to implement such a possibility with custom queries in WP_Query.

    I have added your suggestion to our issue tracker, but I’m not sure when and will it be implemented or not. If you have any example with such a feature, I will be glad to look at the code.

    Regards, nK.

    Thread Starter luucasantosg

    (@luucasantosg)

    Hello.
    Thanks for answering.

    I don’t know much about PHP, but it seems that Wp_query does a filtering and returns the results. And the functionality I mentioned above, would make a reordering of the items. Something that maybe can be solved with AJAX. In the same way as sorting and filters are done. And create a route so that the ordering accepts parameters by category (to make this example easier, I will add category IDs.

    Example: design category id = 3, web design category id = 21.

    https://mysite.com/portfolio/?vp_sort=3,21

    In this way, the ordering will prioritize the design category first, web design soon after, and the other posts last. I was wrong to inform in the examples of the first post when using the query string filter parameter. The solution to the problem addressed would be to use the sort parameter, as in the previous example.

    I found a plugin in the WordPress repository that does this sorting function. However, there are two disadvantages to it: It allows this ordering only by back end. And testing quickly, it worked only with post and not with the categories of the portfolio.

    Link of the plugin with the code:
    https://ww.wp.xz.cn/plugins/taxonomy-terms-order/#developers

    Result of posts ordered with the plugin above. The order of the categories configured in the plugin was: ux-design, web-design, motion, others categories.
    https://web.archive.org/web/20210302145541/https://uxburguer.com/blog/

    As soon as I have more examples, I update this answer to insert.

    • This reply was modified 5 years, 1 month ago by Steven Stern (sterndata).
    • This reply was modified 5 years, 1 month ago by luucasantosg. Reason: Repairing example errors from the first post
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Order portfolio order by categories in query String’ is closed to new replies.