Fairly straight forward shortcode… i thought
-
Any thoughts why my attempt to make a shortcode in my template functions.php file won’t work properly:
https://wordpress.pastebin.com/m783592d1
if I use the custom shortcode [pagelinks] any forced echos (echo “the id is”) will show at the top of the post no matter where the shortcode is pasted.
also, $post->ID is NULL. this suggests the function is running before the loop is run… i think
Any thoughts would be appreciated.
Basically, I am wanting to create a shortcode [pagelinks] that my client can use to have a special stylized list of the links to all the children of that page.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Fairly straight forward shortcode… i thought’ is closed to new replies.