WordPress.org

Forums

[Plugin: AutoNav Graphical Navigation and Gallery Plugin] Include AutoNav in template (8 posts)

  1. esstilo
    Member
    Posted 5 years ago #

    Hey,

    Is there some sort of way to include this plugin in a template instead of manually adding it to each page.

    Thanks,

    Esstilo

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

  2. wlindley
    Member
    Posted 5 years ago #

    You may use this code in your template, for example, where you wish a table of child pages' thumbnails:

    <?php print autonav_wl_shortcode(array('display'=>'images')); ?>

    or where you would like a table of all attached images:

    <?php print autonav_wl_shortcode(array('display'=>'attached')); ?>

  3. linjian001
    Member
    Posted 5 years ago #

    Dear wlindley ,Then will I need to define a page template for mother page, and then insert the shortcode to it to show the child pages?

    BestReguard!
    Ajian

  4. linjian001
    Member
    Posted 5 years ago #

    I set the page template in accordance with the instruction, but I find it can'nt display the images in child pages,See below for specific information in the screenshots:
    http://www.flickr.com/photos/44293658@N06/4180220927/
    http://www.flickr.com/photos/44293658@N06/4180221081/
    http://www.flickr.com/photos/44293658@N06/4180221177/

  5. faber@faberphoto.it
    Member
    Posted 5 years ago #

    same issue here.
    I have three pages under the parent and all of them are thumbnail'd with the WP 2.9 feature, but still I can't have the image.

    Where am I wrong?
    I'm using this code in the template:
    <?php print autonav_wl_shortcode(array('display'=>'images')); ?>

  6. wlindley
    Member
    Posted 5 years ago #

    I just did a fairly exhaustive test with the plugin v1.2.2 and WordPress 2.9, and it does work. However, if you are getting img="" in your output, that means Autonav can't find the thumbnail image, or can't create a resized version.

    Can you try manually using the [autonav...] shortcode? Also, are there any entries recorded in your website's error log?

  7. faber@faberphoto.it
    Member
    Posted 5 years ago #

    here you have what my error logs states:

    `[Mon Dec 28 15:09:14 2009] [error] [client 192.168.1.180] File does not exist: /var/www/blog/wp-includes/js/tinymce/langs/en.js, referer: http://192.168.1.236/blog/wp-admin/page.php?action=edit&post=131&message=1
    [Mon Dec 28 15:09:14 2009] [error] [client 192.168.1.180] File does not exist: /var/www/blog/wp-includes/js/tinymce/themes/advanced/langs, referer: http://192.168.1.236/blog/wp-admin/page.php?action=edit&post=131&message=1
    [Mon Dec 28 15:09:16 2009] [error] [client 192.168.1.180] File does not exist: /var/www/favicon.ico, referer: http://192.168.1.236/blog/?page_id=131
    [Mon Dec 28 15:09:17 2009] [error] [client 192.168.1.180] File does not exist: /var/www/favicon.ico, referer: http://192.168.1.236/blog/?page_id=131
    [Mon Dec 28 15:09:26 2009] [error] [client 192.168.1.180] File does not exist: /var/www/blog/wp-includes/js/tinymce/langs/en.js, referer: http://192.168.1.236/blog/wp-admin/page.php?action=edit&post=131&message=1
    [Mon Dec 28 15:09:26 2009] [error] [client 192.168.1.180] File does not exist: /var/www/blog/wp-includes/js/tinymce/themes/advanced/langs, referer: http://192.168.1.236/blog/wp-admin/page.php?action=edit&post=131&message=1
    [Mon Dec 28 15:09:29 2009] [error] [client 192.168.1.180] File does not exist: /var/www/favicon.ico, referer: http://192.168.1.236/blog/?page_id=131
    [Mon Dec 28 15:09:29 2009] [error] [client 192.168.1.180] File does not exist: /var/www/favicon.ico, referer: http://192.168.1.236/blog/?page_id=131`

    the page is the one that calls the plugin.
    In adition, if I use the shortcode instead the template's code, I get no list/image at all..

  8. faber@faberphoto.it
    Member
    Posted 5 years ago #

    Ok.
    Probably something is wrong on my test machine, because almost all works onthe live machine (www.faberphoto.it/fashion).

    The thing that doesn't work is the following code:

    <?php print autonav_wl_shortcode(array('display'=>'images,title')); ?>

    The result is ok, but before the list I get a problem:

    Warning: Wrong parameter count for strpos() in /home/mhd-01/www.faberphoto.it/htdocs/blog/wp-content/plugins/autonav/autonav-wl.php on line 549

    Warning: Wrong parameter count for strpos() in /home/mhd-01/www.faberphoto.it/htdocs/blog/wp-content/plugins/autonav/autonav-wl.php on line 550

    I'll try using the shortcode

Topic Closed

This topic has been closed to new replies.

About this Topic