WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Enumerating shortcode gallery images (4 posts)

  1. mohawktopus
    Member
    Posted 5 years ago #

    Two-parter.

    1) I'm trying to get my shortcode gallery to display numbers instead of thumbnails, and have that all integrated with a lightbox.

    So basically, instead of [thumbnail 1 with link] [thumbnail 2 with link] etc., I would have 1 | 2 | 3 | 4 and each would pop up the lightbox for that particular attachment.

    2) Also, I was testing wp_get_attachment_url() by inserting it into single posts and single pages that have attachments as <?php echo wp_get_attachment_url(); ?>, but it won't display anything (even in the source code). Am I misunderstanding how to use this function?

    Any suggestions?

  2. moshu
    Member
    Posted 5 years ago #

    2. You should use template tags in the template files, never in the content of a post or Page.

  3. mohawktopus
    Member
    Posted 5 years ago #

    I meant that I edited the template pages of Single Post and Single page. (By going to the Design > Theme Editor dealio.)

  4. mohawktopus
    Member
    Posted 5 years ago #

    I figured it out finally, but it was a while back now, and I don't remember how...

Topic Closed

This topic has been closed to new replies.

About this Topic