• thomasgriffinoraclecom

    (@thomasgriffinoraclecom)


    Can TWO parameters be included in a URL, with dynamic values that are taken from custom meta fields?

    I’m using JetEngine custom Post Type named “Recitation Videos” and the parameters are two Meta fields on the Recitation Video post type. The first is a text field labeled “Passage” (Name/ID = “passage”) and the second parameter is a “select” field labeled “Bible Version” (Name/ID = “bible-version”). The syntax of the URL is like https://www.biblegateway.com/passage/?search=psalm+139%3A1-4&version=NIV and, in this, you see the passage in the ‘search=’ value and the version in the ‘version=’ element.

    The WordPress site is [ redundant link removed ], specifically any of the individual Video pages (the Bible gateway section). When I go to Templates > Theme Builder > Default Recitation Video Single > “Edit with Elementor” and Edit the Dynamic Field in which I display the Bible Gateway passage, the Field format currently reads:

    https://www.biblegateway.com/passage/?search=%s&version=NIV

    The “search=” parameter is dynamically populated with the Passage meta field value. It is the second parameter, the “version=” that I would also like to also populate with dynamic content

    I really appreciate your help with this and will gladly provide any more information if needed. Some screenshots are here: https://byheart.org/wp-content/uploads/2020/08/TWO-Parameters-in-a-dynamic-field-URL.docx Screenshots

    • This topic was modified 4 years, 3 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

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

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It looks like the field format ends up being used in a PHP sprintf() function which substitutes values for occurrences of %s. So if that function call does not pass additional values, there’s nothing you can do to the format itself. It might be possible to alter the eventual URL through other means. How to do so depends on the inner workings of Elementor.

    I recommend asking for help through Elementor’s dedicated support forum where those that well know its inner workings can help you.

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple Parameters in a Dynamic Field URL’ is closed to new replies.