How can I place the course_id (the post number) on a page?
What's the best way for me to do this on the course-status page?
I place a 3rd party shortcode onto my page. Something like:
[3rdPartyPlugin dir="/abc/" intro="SomeText"]
This works fine, no problems. Now I'd like to place the ID of the course that this page belongs to into that 3rd party shortcode so that I get something like this:
[3rdPartyPlugin dir="/abc/'Insert CourseID call from Vibe'" intro="SomeText"] so that it becomes something like
[3rdPartyPlugin dir="/abc/12345" intro="SomeText"]
I understand from https://codex.wordpress.org/Shortcode_API#Nested_Shortcodes that I can't place a [xx] shortcode inside another shortcode so we can't call [xx [yy] zz]
Can you help me work out how to get the post id into my shortcode please.
I know from another post here that @Logan mentioned to a customer that there are multiple ways of retrieving that id.
thank you1 month, 2 weeks ago VeronicaModerator
Replies only viewable for logged in users1 month, 1 week ago VeronicaModerator
Replies only viewable for logged in users
The topic ‘course_id on page / in shortcode’ is closed to new replies.