• Resolved laksacurry

    (@laksacurry)


    Hi,

    I have created an ACF card with two fields ie image + title (archive item) and another ACF card with all the details (details card). The archive item card is displayed on a gallery page. However, I’m clueless what to do such that when users click on the image/title of a post in the gallery, it goes to the details page of that particular post and displays all the views ie card #2.

    Hope I’m not confusing you.

    Thank you very much in advance!

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

    (@wplakeorg)

    Hi @laksacurry

    What you’d need to do is create an ACF View, we’ll call this View “archive item” in there you’d assign from Group $post, “Title with link”, and “Featured image with link” fields, with a small image size. Publish the View. (No need to copy shortcode here)

    Then create an ACF Card, we’ll call it “archive grid”, assign your “archive item” View. Use filters as necessary, for e.g. so it shows “gallery archive CTP” post types items. Publish and copy the first shortcode, go to your “Galleries overview” page (the page that should show all archive items). Use the Gutenberg shortcode block or paste directly into the content. Publish the page.

    For the Gallery page/post (gallery single) we’ll also create an ACF View, let’s call it “archive details” and then you can again assign the fields “Title”, “Featured image” with image size large (no need for links as we’ll be on the page) and keep adding all the other fields that need to be displayed. Save and copy the shortcode, paste it on the “gallery” page/post to test (but it would be worth while putting the shortcode in your theme’s template file). Fill the fields from your “archive item”. Save that and view the post to see the result. Remember to add some more gallery page/post items at this stage, if there aren’t any.

    Visit the Gallery overview page and it should show the gallery single item, or more if there are available. Clicking on either the title or image would go to the details page.

    Let me know if that works.

    • This reply was modified 1 year, 8 months ago by WPLake.
    Thread Starter laksacurry

    (@laksacurry)

    Thanks for the really prompt response! I’ll try it out. Really appreciate the assistance!

    Thread Starter laksacurry

    (@laksacurry)

    Hi,

    You instructions worked wonderfully. Thank you so much! There’s only one thing that I couldn’t do. I can’t find the “Featured image with link”. There is only a “thumbnail” field so the image in my archive item is not clickable.

    Plugin Author WPLake

    (@wplakeorg)

    Hi @laksacurry

    We’re glad to hear it’s all working well.

    To have the “Featured image with link”, you’d need to please update your ACF Views plugin to the latest version.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Connecting Archive and Details’ is closed to new replies.