Forums

CataBlog
[resolved] Image linking (3 posts)

  1. charloub
    Member
    Posted 1 year ago #

    Hi am sorry to post here - and I have tried going through the forum here and on your website but I just don't seem to be able to make the cateblog work the way I had hoped.

    1. page of images with title.
    2. each image links to a single page with the sub images of the same product and a more detailed description.

    Right now - when you click on my gallery image - it just shows the lightbox and doesn't go to the detail page.

    Sorry to be so stupid but could you tell me what I need to do. website is http://www.tinviennaartplates.com

    Many thanks.

    http://wordpress.org/extend/plugins/catablog/

  2. charloub
    Member
    Posted 1 year ago #

    I think I have it working now - I was not putting the linking in correctly.

    Now I just have to figure out - how to lay out the sub images on the detail page so they show up better...

    Yes - I will like you on facebook.

  3. macguru2000
    Member
    Plugin Author

    Posted 1 year ago #

    charloub,

    If you are displaying the sub images on a "Public" catablog page, meaning your page can be rendered from the catablog-items-single.php theme file and you are proficient with PHP I have a little tip for you....

    You can loop through each sub image and render your own sub image code like so:

    <?php $data = get_post_meta(get_the_ID(), 'catablog-post-meta', true); ?>
    <?php $sub_images = $data['sub-images]; ?>
    <?php $path = $wp_plugin_catablog_class->urls['thumbnails'] . "/"; ?>
    
    <?php foreach ($sub_images as $sub_image): ?>
      <img src="<?php echo $path; ?><?php echo $sub_image; ?>" class="catablog-image catablog-subimage" />
    <?php endforeach ?>

    I hope that helps and also don't forget to rate CataBlog :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags