My suggestion would bee to:
1. Create a category named “Photos” or something like that.
2. Add all of your photo posts to the “Photos” category.
3. In your loop add a call to the in_category(#) function replacing the hash sign with the ID of your “Photos” category. you can read about the use of this function here: http://codex.ww.wp.xz.cn/Template_Tags/in_category
i do something similar to this on my blog (link in profile) which lets visitors know whether the post excerpt is from “Art”, “Web” or “Design” – all of which a categories.
Hope this helps…
Good luck!
-Mike
mfields
thanks, but thats not an issue on my template it displayes “photo stories” I just want something more to make it stand out. I was thinking to draw a camera 2d and put it up next to tittle.
ok…
Did you try this:
“In your loop add a call to the in_category(#) function replacing the hash sign with the ID of your “photo series” category. you can read about the use of this function here:”
The code would look something like this:
<?php if ( in_category( '14' ) ) : ?>
<!-- Special html for only photo series category. -->
<?php endif; ?>
You can place this code anywhere in the loop – just replace 14 with the ID of your actual photo series category.
mfields
I got it now π I didn’t understand what you meant before. I’ll try to do that thanks π
mfields
do I put that thing inside template file?
I did it like this, it works, but I’m not php coder or something… is everything correct?
<?php if ( in_category( '35' ) ) : ?> <b>|</b> <a href="<?php the_permalink(); ?>">Photos</a><?php endif; ?>
Your code looks good to me. Yes you should put it where ever you want it to be displayed. I don;t know how you have your blog set up. If you are not using a static homepage – then add the code inside the loop in index.php. This will make it work on the homepage, if you have other template files that display posts from multiple categories, you’ll want to add it to them too.
Hope this works for you!
mfields
I didn’t understand that loop part, and no I don’t have static index. http://www.sandrophoto.com please take a look.
it seems to be working though π
THANK YOU!