• Resolved SilverKnightSolutions

    (@silverknightsolutions)


    Hello,
    Not sure how long this hasn’t been working.
    When I viewed a page on the website using Pods, I noticed that the Image and Artist information was no longer showing.

    When I go into the Divi Theme editor, I see the error message “Pods embed error: Pod not found.

    Here are the shortcodes I’m using.
    [pods field=”artist_name”] [pods]{@artist_name}[/pods]

    [pods field=”artist_image._img.large”] [pods]{@artist_image._img.large}[/pods]

    Artist Name: [pods field="artist_name"]
    [pods]{@artist_name}[/pods]
    
    From: [pods field="artist_from"]
    [pods]{@artist_from}[/pods]
    
    Style: [pods field="artist_style"]
    [pods]{@artist_style}[/pods]
    
    Media: [pods field="artist_media"]
    [pods]{@artist_media}[/pods]
    
    Subject: [pods field="artist_subjects"]
    [pods]{@artist_subjects}[/pods]
    
    Art Value: [pods field="art_value"]
    [pods]{@art_value}[/pods]

    Thanks for the guidance on why I’m getting this error message.
    Greg

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support pdclark

    (@pdclark)

    You’re opening the [pods] shortcode twice. The second entry, [pods], with no arguments specified, should not be there.

    Plugin Support pdclark

    (@pdclark)

    Also, unless you’re on a template that’s already running a default query for the extended pod, you typically need to specify the name of the Pod being queried.

    I’d expect to see something like this:

    Artist Name: [pods name="name_of_your_custom_post_type_registered_with_pods"]{@artist_name}[/pods]

    Specifying field="artist_name" and using a template, {@artist_name}, is also redundant. So I’ve removed one. It’s either one or the other.

    • This reply was modified 3 years, 6 months ago by pdclark.
    Thread Starter SilverKnightSolutions

    (@silverknightsolutions)

    Hi Paul,
    Thanks for replying.

    This code was working when I initially built the site but somewhere along the past updates it stopped working and I’m not sure when.

    I’m not sure I follow what you are saying.
    My Template name is called “Artist Template” not {@artist_name}.

    When I look at the documentation, I see the code example below, and it’s how I have my code structured.

    Display a field from the current post
    [pods field=”my_custom_field”]
    [pods]{@my_custom_field}[/pods]

    My Code:
    [pods field=”artist_name”] [pods]
    {@artist_name}[/pods]

    Does this code in the documentation no longer work?

    Thanks
    Greg

    Plugin Support pdclark

    (@pdclark)

    WordPress core currently has an issue where if shortcode styles are mixed, nothing will display. One style is without [/pods], the other is with. To test this solution, change the format by adding [/pods]:

    [pods field="artist_name"][/pods] [pods]
    {@artist_name}[/pods]
    Plugin Support pdclark

    (@pdclark)

    Or just use one or the other. Right now you’re querying the same field twice.

    Plugin Support pdclark

    (@pdclark)

    The documentation is showing two possible formats. It doesn’t work to use both at the same time.

    Thread Starter SilverKnightSolutions

    (@silverknightsolutions)

    Hi Paul,
    Thanks for the quick response.

    That worked. I just used this short code
    [pods]{@artist_name}[/pods]

    or the this other short code

    [pods field=”artist_from”][/pods]

    And now I understand what you meant that I was querying it twice.

    Thanks again for your assistance.

    Greg

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

The topic ‘Pods embed error: Pod not found’ is closed to new replies.