• Resolved pverrone

    (@pverrone)


    Hi.

    I used Pods to set up a client last year, this year they updated WP and Pods, and are now having an issue with their “Pods – List Items” widget not showing up on the sidebar.

    Currently, the widget is set up with the following string in the where clause:
    school_name.meta_value = ‘{@url.1}’

    This has worked previously, but now there are no results. If I change ‘{@url.1}’ to a value, the data shows up.

    Nothing has changed except for the update.
    I am stumped and frustrated and the client is very unhappy.

    Please help!
    Pete

    https://www.ads-software.com/plugins/pods/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Josh Pollock

    (@shelob9)

    The magic tag {@url.1} should be getting the second (count starts at 0) segment of the url. So you need to check that the second segment of the url still has the right value.

    By second segment, I mean, if your URL is https://www.ads-software.com/support/topic/magic-tags-in-widget then {@url.1} would return “topic”.

    Thread Starter pverrone

    (@pverrone)

    Thank you very much for your answer, Josh.

    Yes, it is second. The url is https://studynewyork.us/school/adelphi-university/

    If I change the string from
    school_name.meta_value = ‘{@url.1}’
    to
    school_name.meta_value = ‘adelphi-university’

    The widget shows up and has the correct information.
    The magic tag {@url.1} simply isn’t working anymore.

    Plugin Contributor Josh Pollock

    (@shelob9)

    In your wp-config.php you need to add one line to allow that to work:

    define( ‘PODS_SHORTCODE_ALLOW_EVALUATE_TAGS’, true );

    This was added in Pods 2.4 for security reasons.

    Thread Starter pverrone

    (@pverrone)

    Yup, that worked.
    Thanks!!!! You saved my weekend!

    Plugin Contributor Josh Pollock

    (@shelob9)

    Glad to help. I’m going to do a blog post about these types of constants that we put in place for security reasons that could cause problems on upgrades.

    Please let me know if there is anything else I can do to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Magic Tags in widget’ is closed to new replies.