Function inside a function? (2 posts)

  1. r1987
    Posted 4 years ago #

    Hello !

    Cause I'm not really good at php then i don't know how to solve this problem.

    I have a function in functions.php that searches for attachments in the post. If there are attachments, then it will show them between
    <li> tags.

    [code moderated - please use the pastebin]

    This far everything works!

    What I actually want is to enter a [my_post_slides] shortcode in my post. So in theory it should connect the gc_get_images function and the shortcode function that returns the html also

    Any help guys?

  2. r1987
    Posted 4 years ago #

    Pastebin aadress: http://pastebin.com/TA5nKdtQ

    So how to create a shortcode [my_post_slides] that outputs the post attachments between html tags?

Topic Closed

This topic has been closed to new replies.

About this Topic