Combining shortcode from WP Filebase and ACF in post template?
-
I have this code on 55 posts in a particular category:
[wpfilebase tag=form id=printerwoes /]
[wpfilebase tag=list id=71 sort='>file_date' pagenav=1 num=-1 /]
These two lines allow me to upload a file using a form designated for that particular page and then display all files uploaded to that directory.
Is there any way to program the custom page template for this category to take a custom field entry (i.e. “printerwoes” and “71”) and insert it into the pasted code above?
Instead of having to post those two lines and fill in the IDs on every single page, it would be so much easier to just put in some custom fields to handle it, no?
Stupid question?
The shortcode for my custom field plugin would be like so:
[acf field="printerwoes"]
I’m using Advanced Custom Fields and WP Filebase Pro
Any suggestions, guys? I appreciate it – thanks!
- The topic ‘Combining shortcode from WP Filebase and ACF in post template?’ is closed to new replies.