Call in template with permalink name
-
Hi,
Loving the plugin
I have created a template in my theme and have setup my system in such a way i can create one template and call the permalink and use the name as the sub folder name.
So within my template i want to keep a consistant shortcode and have the subdirectory change based on an echo function (already setup).
1. Heres my current shortcode
[fileaway base=1 manager="on" sub="/Brands/Websites" directories="true" drawerid="1" bulkdownload="on" metadata="database" flightbox="multi" type="table" theme="minimalist" encryption="on"] [fileup base=1 sub="/Brands/Websites" fixedlocation="true" matchdrawer="1" uploader="id" maxsize="500"]2. Heres my PHP function
// Get page url and strip out home address and hyphens with spaces $path = str_replace( array(home_url(),”-“), array(“”, ” “), get_permalink() ); echo $path;e.g. output ‘/brands/websites/’
3. I want to take the ‘echo $path;’ and put it inside the ‘sub=””‘ in both fileaway and fileup.
e.g. sub=”echo $path;”
Is this possible?
Nick
The topic ‘Call in template with permalink name’ is closed to new replies.