• Resolved sharkbone

    (@sharkbone)


    I would like to link a Visual Portfolio Gallery to another gallery filter by way of querying particular custom post types. I have already tried custom queries in the lines of post_type=”post, cubeportfolio” since I will be referencing all posts from the cubeportfolio gallery plugin with post type slug “cubeportfolio”.

    This method seems to work with other custom posts but not posts from the cubeportfolio gallery. The Portfolio Gallery i am trying to link is embedded in this page here http://tile.johnzuh.com/. Link to plugin website https://wordpress.org/plugins/visual-portfolio/ for reference purposes.

    I might just need some tips on how to query filters from another plugin in wordpress or simply just link the URL of the filters directly to the visual portfolio i am using so when user clicks on them it takes them directly to a particular category and its respective gallery.

    The page I need help with: [log in to see the link]

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

    (@nko)

    Hi.

    I don’t know how Cube Portfolio plugin works. Also, I don’t quite understand why do you need to use 2 portfolio plugins to work together.

    If you want to show the custom posts, you first need to be sure that these custom posts are “public” (https://codex.wordpress.org/Function_Reference/register_post_type#public).

    Filters of visual portfolio work only with visual portfolio container and work with Posts Taxonomies (categories, tags). If you need to be redirected to another page, I think, you need to add JS customizations.

    Regards, nK.

    Thread Starter sharkbone

    (@sharkbone)

    I will be more interested in redirecting the links from Visual to another page with the cube portfolio Gallery Categories. I am just using visual portfolio to present the various Categories on my home page since it has all that i need to present it but i still need to link it back to this gallery source since that was used from the onset. Here is a documentation for cube https://www.derecho.unam.mx/estudiantes/pagina/documentation/#options . I might need some JS customisation example on how to link to this gallery source, i will then take it from there. Appreciate your response.

    Plugin Author nK

    (@nko)

    The only way – replace the links in the Visual Portfolio categories buttons, but I don’t recommend you use it.

    For example, you have portfolio item with category name “badfliesen”, you can change the link with this script (replace YOUR_NEW_URL_HERE to url that you need):

    jQuery('.vp-portfolio__item-wrap[data-vp-filter="badfliesen"] a[href="/?vp_filter=portfolio_category%3Abadfliesen"]').attr('href', 'YOUR_NEW_URL_HERE');
    
    Thread Starter sharkbone

    (@sharkbone)

    Thanks. Will give that a try.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Link Visual Portfolio button URL to another gallery filters (cube portfolio) .’ is closed to new replies.