Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] How to create automatic links from custom field data?

$
0
0

Hmm .. I double checked the field ID and I've realised I pulled in the wrong one. I've found the correct field name now and see that it pulls in the media ID, not the Media URL.

It seems the ACF plugin stores the media ID of a file and uses that to link the custom post type.

Is there a way to get the file url from the Media ID?

This is the code:

<li><a href=”[wpv-post-field name="download_minutes"]” target="_blank">[wpv-post-title]</a></li>

I now get this as a URL output:

http://www.devotivememories.com/get-involved/yir-meetings/"893"

ie. Media ID = 893 and that corresponds to a media file url of: http://www.devotivememories.com/wp-content/uploads/2014/04/York-in-Recovery-Forum-Minutes-Feb-2014.pdf

..

Not sure how to call that URL through. Can you still help?

Cathie.


Viewing all articles
Browse latest Browse all 20145

Trending Articles