Get content of specific post added through Query String

Hey there,

I used Post ID(Numeric) in their links and when I’m hitting that link I’m fetching the Variable from URL to Query String in the Looper on a DIV element.
But when I’m trying to fetch the title and Excerpts of that specific (provided ID) post inside that DIV, it is not fetching the required data.
Is there anything wrong I’m doing or this isn’t the way Cornerstone is going to fetch the data?

Please let me know about it, Thanks.

image
image

Hi @klevur,

Thanks for reaching out.
In Query String use p instead of post_id and {{dc:url:param key=“id”}} to get the id coming. Your Query String will look like the following.

p={{dc:url:param key="id"}}

Screenshot 2022-06-20 201242

Hope it helps.
Thanks

Hi @tristup

Thanks for your quick response.
And Yes that worked!! Thanks for helping me out. Really appreciate it.

Hi @klevur,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.