• Resolved squaredvr

    (@squaredvr)


    Hey Support,

    I extended a post type, added several fields to it and attempted to reference a pods field in the editor using a shortcode. On the front end I was getting a “pod not found” error and I performed a number of tests to determine the issue. After comprehensive testing I believe that the problem has to do with this post type being a “non-public” post type. While I’m able to create and populate fields for the post type, I’m not able to reference the content of the fields and have it displayed on the front end. Is there a known fix or workaround for this issue?

    Thank you,

    Brandon

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

    (@keraweb)

    Hello @squaredvr,

    Could you share the shortcode you’ve used? And are you using this in the post content or in a Pods Template?

    Cheers, Jory

    Thread Starter squaredvr

    (@squaredvr)

    Hey Jory,

    I’m using it in the post content.

    This is the shortcode I used: [pods field=”course_name”]

    I took some screenshots that more clearly demonstrate the problem. Pasting the links and explaining each screenshot below:

    PODS1.JPG: Shows the content of the post. The post type is called “question” and is a non-public post type. The arrows point to pods shortcodes referencing pods fields from external posts. The external posts it references are called “topic” and are a public post type. The circled shortcode references a pods field within the post itself.
    PODS2.JPG: Demonstrates the content of the pods field that is referenced in the pods shortcode.
    PODS3.JPG: Shows the pods list and the pod created for the “question” post type
    PODS4.JPG: Shows the pods fields for the “question” post type, and confirms that the shortcode references the correct pods field.
    PODS5.JPG: Shows the post on the front end. The content can be mapped to the back end in PODS1.JPG. The arrows point to pods shortcodes referencing pods fields from external posts. The circled shortcode references a pods field within the post itself. The pods shortcodes referencing pods fields from external posts display the content properly, but the shortcode referencing the field from the post itself does not. I replicated this experiment with other pods fields in the post to confirm that it wasn’t working with those either.

    PODS1.JPG
    PODS2.JPG
    PODS3.JPG
    PODS4.JPG
    PODS5.JPG

    Thanks for the help!

    Plugin Author Jory Hogeveen

    (@keraweb)

    [pods field=”course_name”] will only work inside the WP loop. Are you sure this is the case?
    If not you’ll need to provide the current object info just like you did with the other shortcodes that are working (name & id).

    Plugin Author Jory Hogeveen

    (@keraweb)

    I assume you’ve fixed your issue since I didn’t get a reply.
    If not, feel free to re-open this topic!

    Cheers, Jory

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

The topic ‘Pods shortcode not working on specific post type’ is closed to new replies.