Include TWO dynamic values (from custom meta fields) in a URL?
-
I have a question about parameterized URLs. Can TWO parameters be included in a URL, with dynamic values that are taken from custom meta fields? The URL I’m working with is in a dynamic field and located within an iFrame. It pulls back an external page showing a Bible passage. The properties are the passage and the version (e.g. passage=Psalm 139 and version=NIV), and these already exist as custom metafields on the custom post type. 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 field format, as it currently is setup, is shown below. It only has one variable. It uses the text string (%s) based on the ‘passage’ metafield, and the version is hard-coded instead of dynamic.
BTW: If there is already a video that covers adding multiple dynamic parameters to a URL, then just point me at that. I don’t want to waste your time, but I’ve been spending hours trying to find this without success.
-
Hi there,
It looks like you’re in the wrong forum. It appears that you’re using the open-source WordPress software and therefore you need to seek help at these forums:
https://wordpress.org/support/forums/
These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and the WordPress software you can read this document:
- The topic ‘Include TWO dynamic values (from custom meta fields) in a URL?’ is closed to new replies.