Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try a shortcode that specifies photos with certain tags like:

    [wppa type="album" album="#tags,Duck;Owl"][/wppa]
    for all photos that have tags Duck OR Owl
    or
    [wppa type="album" album="#tags,Duck,Owl"][/wppa]
    for all photos that have tags Duck AND Owl

    See also: https://wppa.opajaap.nl/shortcode-reference/

    and try the shortcode generator as explained here: https://wppa.opajaap.nl/shortcodes-and-scripts/

    Thread Starter massimod

    (@massimod)

    Yes sure.

    But how can that be automatic ?

    The way you describe above needs the shortcodes to be entered in each blog post ?

    thanks

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You will have to tell wppa one or another way which keywords to use

    Thread Starter massimod

    (@massimod)

    I guess WPPA could use the tags (if any) that each post have ?

    In any case i have to do it manually or just use something like that

    https://wp-buddy.com/wiki/add-a-shortcode-to-every-post-or-page/

    would that work ?

    Thread Starter massimod

    (@massimod)

    and to be honest, since i switched from Nextgen to WPPA, i’m just looking for a way to have NextGen’s Show Related Photos after each post.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    If you want all words in the post to be treated as search items for tags on photos or as search items to be found in photo/album names/descriptions… i could make a simple special shortcode to do that.

    Thread Starter massimod

    (@massimod)

    No need to do all that.

    I will find a way myself, since apparently i can’t replicate the Related Photos function i need.

    Thanks

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    But i am quite willing to implement such functionality, if you supply me some more info on what you expect it to do without referring to other plugin(s).

    Thread Starter massimod

    (@massimod)

    Ok then.

    I was using NextGen to show (automatically) related photos AFTER each Blog post.

    I guess NextGen looked and compared the tags from Blog posts against the tags of Photos.

    Not sure how to explain better.

    thanks

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Ok, i will think about it…

    Thread Starter massimod

    (@massimod)

    Related images

    The function related images gives you now the possibilities to append images to a post (not a page) which contain related tags or categories. You can activate this in the options or you can modify your theme files, to place the images at a different position.

    This is the code for the theme files :

    if (function_exists(“the_related_images”))

    the_related_images([string $type],[int $numbers]);
    Parameters :

    Possibles values for $type are:

    tags (add related images based on the tags)
    category (add related images based on the selected categories)

    $numbers : Maximal number of images to show

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thanx for the info!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I implemented something alike in version 5.1.11. See the Changelog or the Shortcode reference

    Thread Starter massimod

    (@massimod)

    Yes, i saw that (#related.).

    But how do i implement that ? hardcode it in the theme ? Or ?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try this:

    At the end of the page content add:

    [wppa type="album" album="#related,tags"][/wppa] if there are photo tags that are words that appear in the pages content, or:

    [wppa type="album" album="#related,desc"][/wppa] if there are words in the photo descriptions that appear in the pages content.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Show Related Photos in Blog posts’ is closed to new replies.