• Resolved sisto01

    (@sisto01)


    Hey,

    I am currently working on my parents’ website. (with Divi)

    I would like to create a page template (project), where they only have to fill in the data (coming from Pods). So They don’t have to touch the visual.

    First, I created the different fields in pods.

    I created a model and I associated this model with CPT layout injector to the projects.

    In this model, I used the divi visual builder to insert the pod fields, into text modules. Into this text modules, I insert the Pods Shortcodes.

    -[pods name=”project]{@identite}[/pods]
    -[pods]{@identite}[/pods]
    – [pods name=”project” slug=”28827″ field=”text”]

    But when I create a project, I fill the data from Pods, but nothing appears on the site. I think there is a problem with shortscodes or magic tags. But I do not know what to put…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Actually there’s a problem with your shortcode.

    [pods name=”project]{@identite}[/pods] you aren’t finishing the name parameter, it would be name="project". This is also going to give you every single project in your project post type.

    [pods]{@identite}[/pods] this will only work if that Visual Builder is in the loop. In most cases, these Visual builders are _not_ in the loop so this won’t work or will return ‘Pods Not Found’.

    [pods name=”project” slug=”28827″ field=”text”] you want to use id if the post id is 28827.

    My suggestion: test to see if you get content properly _outside_ of the Visual Builder, directly in the post or a WordPress Page. If you do, then the issue is with the Visual Builder.

    I’ve worked with Divi in the past and typically, I’ve had to mock up the design I’ve wanted with a Single Post Type in Divi, pull that content in the HTML inspector and just wrap it inside a Pods Template or a PHP Theme Template because Divi doesn’t support Custom Post Types in the way a theme should handle them.

    Check out this video for an overview of Pods: https://youtu.be/fxpH68u3sgw

    Plugin Contributor Jim True

    (@jimtrue)

    We haven’t heard back from you on this one so have to assume you’ve solved the issue or our answer was sufficient to handle your problem, so we’re marking this ticket resolved.

    If you still have an issue, please open a new ticket or you can reach out to us on our Slack Chat at https://pods.io/chat/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong magic tags / shortcode’ is closed to new replies.