Norke
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Add post-ID to slug automaticlyha, ok ?? thx again!
Forum: Fixing WordPress
In reply to: Add post-ID to slug automaticlyHi esmi,
that was indeed the first thing I tried:
/%category%/%postname%-%post_id%
It gave me these results:
site.com/burp-15 [post-ID = 15] site.com/burp-2-16 [post-ID = 16] ... site.com/burp-5-32 [post-ID = 32]
Is there a possibility that the number of the page isn’t showing?
Thanks for keeping me posted ??
Forum: Fixing WordPress
In reply to: Custom Field cascading systemOh esmi,
Thank you!
This is what I ended up with:
if(!get_post_meta($post->ID, 'BannerImage', true)) { $banner_image = get_post_meta($post->post_parent, 'BannerImage', true); } else { $banner_image = get_post_meta($post->ID, 'BannerImage', true); } echo '<img src="' . $banner_image . '" />';
Thx again for the quick help!
Forum: Plugins
In reply to: Display more tagsHey MichaelH,
thank you for the quick responds. It works!
Forum: Themes and Templates
In reply to: How to remove the <p>’s from the_content?I know it’s resolved already, but this would have been a better solution:
In stead of using
<?php the_content(); ?>
you could have used<?php echo get_the_content(); ?>
That returns without the p tag.Forum: Fixing WordPress
In reply to: How to exclude the first 3 posts in a categoryOops, I solved it differently. I started a different loop to get what I want, but I thought I could fix it with CSS. So I added a counter:
<?php $recent = new WP_Query("cat=4&showposts=4&order=DESC"); while($recent->have_posts()) : $recent->the_post(); $loop++;?> <li <?php if ($loop == 4) { echo ' class="current"'; } ?>><a href="
It works now.
Peace
YannickForum: Fixing WordPress
In reply to: n00b question – Gallery highlight pic in post, link to fullYou could fix that by using the Custom Fields on the post.
Custom Field key: thumbnail
Custom Field value: https:// link-to-your .jpgThen in your code, you could write something like this:
<a href="<?php the_permalink() ?>"><img src="<?php $key="thumbnail"; echo get_post_meta($post->ID, $key, true); ?>" alt="<?php the_title(); ?>" title="Click this thumbnail to read <?php the_title(); ?>" /></a>
Forum: Fixing WordPress
In reply to: Attaching a post to another postThx a lot MichaelH ??
Forum: Plugins
In reply to: This file is downloaded % timesThx! It works like a charm.
kuddos.
YannickForum: Fixing WordPress
In reply to: Template file only showing posts in 1 category and child categoriesIt’s solved, thx anyhow. ??
Forum: Fixing WordPress
In reply to: Template file only showing posts in 1 category and child categoriesI tried solving it with:
<?php $recent = new WP_Query("cat=18&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
Allthough, the whole post is on it and only the stuff before the <!–more–> should be displayed. Anybody has an idea?
Forum: Installing WordPress
In reply to: Fresh install in a different folderOeh! thx ??