rumlab
Forum Replies Created
-
Please post, if you find a solution.
thx
Dont know about slider, but you can use the
echo do_shortcode('[nggallery id=1]');
or whichever shortcode you need, to show on any page.First you need to edit the nextgen-gallery/view/imagebrowser.php
Look for the texts that equal the standard texts like “Back”, Next”, “Pictures” etc. Change them or remove to you liking.
The AND#9658; – AND#9668; are the arrows.Then you need to do a bit a CSS. Look under “Style” in your Gallery control panel (wp-admin).
Scroll down to the image browser section. There you have all kinds of styling options.Morten
Forum: Plugins
In reply to: is_category() and in_category() not workingReviving an old thread here.
The code posted by Michael works except I would like to only specify a top level category only, as the user of the site are free to make their own categories. The code only works when you specify the child category id.
Thanks!
Forum: Fixing WordPress
In reply to: Page Order BrokenOr use this handy plug:
Forum: Plugins
In reply to: Insert Image, NextGen Gallery or other in top of postSorry, I’m talking to myself.
Everything worked after a reinstall of NextGen. But I never changed settings or any vital files, so strange I could brake it just by calling the shortcode i different ways…Forum: Plugins
In reply to: Insert Image, NextGen Gallery or other in top of postHmmm. I had it sort of working, but somehow screwed it up. I used this snip of code I found:
<?php $gallery = get_post_meta($post->ID, ‘gallery’, true); ?> <?php $gal = $gallery; $gal = apply_filters(‘the_content’, $gal ); echo $gal; ?>
Made a custom field with a ‘gallery’ key and a value of [imagebrowser id=x]. This is my page.php loop:
<div id="block_content"> <?php query_posts('category_name=arrangementer'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <div class="content"> <div class="text_content"> <?php $gallery = get_post_meta($post->ID, ‘gallery’, true); ?> <?php $gal = $gallery; $gal = apply_filters('the_content', $gal ); echo $gal; ?> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <small>on <?php the_time('M d'); ?> in <?php the_category(', '); ?> tagged <?php the_tags(''); ?> by <?php the_author_posts_link(); ?></small> <ingress><?php the_excerpt(); ?></ingress> <p><?php the_content(); ?></p> </div> </div> <?php endwhile ?>
Any advice is most welcome please.
Morten
Forum: Fixing WordPress
In reply to: Creating Posts on Different PagesHad the same issue. There seem to be a few ways to do this. The rockstar guide has a different approach than my solution:
1. Duplicate your page.php and call it something like essay.php or whatever appropriate.
2.Edit the essay.php to have this in beginning before anything else:
<?php /* Template Name: Essay */ ?>
And change your loop to have the query_posts show only posts from a specific category (only first line should be added):
<?php query_posts('category_name=essay'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?>
Create a category called essay.
All the post to appear on essay page, should be within this category.Then under pages, change your Essay page to use the Essay template (quick edit).
Then do the same with other pages.
Morten
Forum: Fixing WordPress
In reply to: Style the excerptAhhh. The “disable-wpautop” plugin did the trick!
Forum: Fixing WordPress
In reply to: How to build a multi page websiteOk, Problem solved with a fresh wordpress install.
Forum: Fixing WordPress
In reply to: How to build a multi page websiteI’m trying to achieve just the same, but seem to miss something. I made a page template (one to begin with) to receive posts from a specific category, but the page just displays blank.
second option here:
https://www.nathanrice.net/blog/creating-a-blog-page-with-paging/Only if I use the loop in my index.php, it shows up. What’s the deal?
Thanks for any help.
Morten