ZuiderZeiler
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PageNavi] [wp-pagenavi] does not workSOLVED for me:
I have not previously had to edit my PHP files to make this plugin work. However the installation instructions of this plugin read:Usage
In your theme, you need to find calls to next_posts_link() and previous_posts_link() and replace them.
In the Twentyten theme, it looks like this:
<div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘twentyten’ ) ); ?></div>
<div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?></div>You would replace those two lines with this:
<?php wp_pagenavi(); ?>
Go to WP-Admin -> Settings -> PageNavi for configuration.
I use the theme andrea personally, which contains a number of php files (index, posts, single, search ect) containing such calls.
Replacing this entire block with “<?php wp_pagenavi(); ?>” sorted the problem. Oddly enough, just commenting the block like/*
<div class=”navigation group”>
<div class=”alignleft”><?php next_posts_link(‘? Older Entries’); ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries ?’); ?></div>
</div>
*/resulted in the comment marks showing up as text and the old style menu still being visible. Also putting the new line inside the “navigation group” block does NOT work. You have to replace it.
Apparently any comments in the php file index.php get put on the webpage as plain text. (Maybe because its inside a div block ?)You could use tags for this: Assign a unique tag to the images you wish to show and then use the following shortcode:
[ nggtags gallery=tag1,tag2,… ]
You can find information on how to use Nextgen Gallery at:
https://www.ads-software.com/extend/plugins/nextgen-gallery/faq/
A more detailed faq with examples can be found at:
https://nextgen-gallery.com/albumtags/
If basic examples on WP dont work, make sure that you have the NextGen Gallery plugin installed, activated, and that you have some images uploaded into a gallery. This means not using the default upload function of WP, but the Gallery one.
Tested this today, and the solution is completely trivial:
Make sure there is at least one SPACE between the two shortcodes. The second shortcode needs to be separated from the first or it doesn’t work.
Edit: Oops, missed the text above. Putting a space between the shortcode works without using albums and editing templates though.Anyone interested in a copy of the CSS file can email me at fscheltens at yahoo dot com and i will email them a copy of the CSS file i currently use.
Note that the file should be put in the directory:
“wp-content\plugins\nextgen-gallery\css”.