Fetch from custom post content field?
-
Absolutely love this plugin. I use it to pass post titles to my frontpage. How could I use this plugin to pass post titles and urls based on the value of a custom post content?
For example: I create a custom post content field called “homepage_headline_location” and then I set the value in a post something like “homepage_headline_location=1”.
It would be great if I could then use this shortcode to pull that specific post’s title, something like
<h3> [loop type="post" field="homepage_headline_location"] <a href="[content field_value="1" field="url" format="false]">[content field_value="1" field="title"]</a>
So this basically pulls the field value and then makes that value the post ID. That way I keep track of those values in posts instead of having to code specific ids into widgets on my frontpage.
Thanks!
https://www.ads-software.com/plugins/custom-content-shortcode/
- The topic ‘Fetch from custom post content field?’ is closed to new replies.