• Hello,

    What code should i sue in phph to get nextgen gallery to show recent uploaded images on a place on my site?

    I found this on google, [recent max=6 ] but it is only for posts so it is not what I am looking for.

    Thanks
    PureRushh

Viewing 6 replies - 1 through 6 (of 6 total)
  • PureRushh,

    In your index.php template file use:

    echo do_shortcode('[recent max=6]');

    This will execute the shortcode that would be used in a post/page editor.

    -Marc

    Thread Starter PureRushh

    (@purerushh)

    thanks, can i ask one more question?

    In my theme I can add menus that well be on the top, but they are getting sorted by alfabeth, so home is getting like number two in the menu, how can i change that?

    PureRushh,

    Double check the order value in the “Page Attributes” panel in the page editor. This value will control the sort order of your pages.

    -Marc

    Thread Starter PureRushh

    (@purerushh)

    noob question, but what is worng here:

    <a href="?p="><img src="' . get_template_directory_uri() . '/images/btn-view-all.png" /></a>

    [Please post code snippets between backticks or use the code button.]

    Thread Starter PureRushh

    (@purerushh)

    sorry dude, but the attributes din’t help, everything is still wrong :/

    But thanks for helping me Mark!

    PureRushh,

    You could also use:

    <a href="?p="><img src="<?php bloginfo('stylesheet_directory'); ?>/images/btn-view-all.png" /></a>

    -Marc

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Show recent uploaded image on index.php’ is closed to new replies.