Pagination shortcode value of current id
-
Hi David,
It’s an impessive body of work you created!
I have a question re pagination.
I based my shortcodes on your single-sample example in your documentation.
My question : is there a way to get the current id from the pagination part of the shortcode without passing it in a url argument?
I have seperate pages for each image. Apparently the attachment tag can be specified in the shortcode instead of in the url argument.
Here are my shortcodes:For the image:
[mla_gallery] mla_style=featuredpainting mla_markup=featured-np s={+page_name+}.jpg /*attachment_tag=featured*/ /*ids={+attachment_ID+}*/ mla_search_fields=file whole-word=true size=large columns=1 mla_caption='<a href="/painting-views/?filename={+page_name+}detail">?See a detail of the painting</a> "{+post_id+}"</br></br><strong>{+description+}</strong> </br></br> {+caption+} </br> {+custom:LocationCity+} {+custom:LocationProvince+} {+custom:LocationCountry+} </br></br><small>click on image to see full size</small>' [/mla_gallery]
For the pagination:
<div style="clear: both; float: left;margin-left:10% !important;font-size: calc( 7px + 0.50vw) !important;"> [mla_gallery] mla_output="previous_link,wrap" attachment_tag="featured" id="{+request:current_id+}" mla_link_text='← {+post_id+}{+title+}' mla_link_href="/featured-paintings/{+name_only+}/?current_id={+attachment_ID+}" [/mla_gallery] </div> <div style="float: right; margin-right:10% !important; font-size: calc( 7px + 0.50vw) !important;"> [mla_gallery] mla_output="next_link,wrap" attachment_tag="featured" id="{+request:current_id+}" mla_link_text='{+title+} →' mla_link_href="/featured-paintings/{+name_only+}/?current_id={+attachment_ID+}" [/mla_gallery] </div>
Thank you
Peter
PS: Hope things work out well for you.The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Pagination shortcode value of current id’ is closed to new replies.