WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Cover photo application for WPPA+ gallery (12 posts)

  1. KCook
    Member
    Posted 1 year ago #

    I am new to both WP and WPPA+, so likely I am making a basic error. I have successfully created a WP post (not Page) that contains a gallery of thumbnails. One thumbnail is picked as the Cover. This gallery shows properly in the detail version of the post (after clicking on the WP post index entry). My issue is that the Cover thumbnail does not show in the WP post index listing. Instead there is just the word GALLERY, and that word does not link to anything. So how do I get a clickable Cover thumbnail to appear in the WP post index? My theme is Kippis, if that makes any difference.

    Kelly Cook

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    A link please...

  3. KCook
    Member
    Posted 1 year ago #

    Here is the link to the post with the gallery of thumbnails, this displays correctly -

    http://photographyintro.com/wp/?p=238

    And here is the main blog index of posts -

    http://photographyintro.com/wp/?page_id=2

    As the Cover image does not show there I had to append the title with "-click here to see photos-" so the user would have a clue to getting to the gallery post!

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    You do not need to make an index of posts and a post for every album.

    If the parents of all albums is set to ---none--- ( the default ) you can simply put %%wppa%% or [wppa][/wppa] in a single post. This will produce a list of albums like http://wppa.opajaap.nl/my-album/

    Set links: Table VI-B1: same as title, and Link type on the Album Admin -> Edit Album Information screen to 'the album photos as slideshow' and Link to to -the same page or post-. If you select a different page, make sure it has %%wppa%% or [wppa][/wppa] in its content.

  5. KCook
    Member
    Posted 1 year ago #

    Ah. But I DO want each album to appear separately in the main post list index! I was not aware that this was not common practice.

  6. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    In that case, make each posts content like this:

    %%wppa%% %%cover=56%% (where 56 is the album number)

    or [wppa type="cover" album="56"][/wppa]

  7. KCook
    Member
    Posted 1 year ago #

    Ok, I have made those changes. The main post index still does not show the Cover thumbnail, even though I also reduced the Cover image size to the minimum, 50px.

    And the detail page for the post shows only the Cover thumbnail, an additional mouse click is needed to see the actual gallery. I was trying to avoid 2 click navigation.

    Random thought: could the issue be how the Kippis theme creates the post excerpts for the main index?

  8. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Post excerpts do not process shortcodes.
    This is another reason why you are taking the wrong approach...

    an additional mouse click is needed to see the actual gallery.

    If you want to open the thumbnail view use [wppa type="album" album=".."][/wppa], if you want the slideshow use [wppa type="slide" album="18"][/wppa]

  9. KCook
    Member
    Posted 1 year ago #

    Shoot. Now we seemed to be locked into a circular argument. So on a hunch I tried 6 other themes. 5 out of the 6 displayed the Cover image in the excerpt on the main post index correctly! So this issue was with the Kippis theme all along. My apologies for putting you through all this trouble.

    Kelly

  10. KCook
    Member
    Posted 1 year ago #

    OOPS! You're right about the excepts not running short codes. My trial above appeared to give a successful result because 5 out of 6 themes were simply listing the full posts, not excerpts!

    I shall have to withdraw into deep contemplation now . . .

  11. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    To help you contemplating, i will confuse you a little bit more with the following info:

    You should also be aware of a clumsy thing in wp:

    A theme can call the_excerpt() to produce the excerpt.
    A theme can call the_content() to produce the content.
    the_excerpt() does not render shortcodes, BUT if no explicit excerpt is entered in the post/page editor, the_excerpt() uses the_content() to make an excerpt. Shortcodes are not rendered in that case.

    [wppa][/[wppa] is a shortcode.
    %%wppa%% is NOT a shortcode.

    %%wppa%% is rendered ONLY AFTER wp_head() (this MUST be in the themes header.php) is executed. This makes it possible to have excerpts in metatags that do not preliminary produce images at the very top of the page.

    So, [wppa][/wppa] is ignored in metatags, %%wppa%% is not rendered in metatags because wp_head() is not executed yet.

    But, first you need chaos before you can create a great thing.

  12. KCook
    Member
    Posted 1 year ago #

    Wow! Very nice of you to spell all that out for me. If only WP's docs made this stuff easy to find.

    Many thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic