Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Add something over/before the posts on tag/cat pages


  #1  
Old Feb 23, 2009, 09:30 AM
chris's Avatar
chris
 
39 posts · Dec 2008
essen@nrw.de
I would like to add a piece of code over/before the posts on tag and categorie pages.

it is to display a categories or a tags geolocations of postings for the plugin geo-mashup.

any idea to get that piece of code over the first posting of that tag/cat page?
  #2  
Old Feb 23, 2009, 03:13 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You could put, into index.php, right after
PHP Code:
<?php get_header(); ?>
this:
PHP Code:
<?php if ( is_tag() OR is_category() ) { ?>
YOUR CODE
<?php ?>
To have it only on the first page of tag/cateory lists
PHP Code:
<?php if ( (is_tag() OR is_category()) AND !is_paged() ) { ?>
YOUR CODE
<?php ?>

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to Add Text to ALL Posts? strangelove Atahualpa 3 Wordpress theme 4 Feb 28, 2010 12:53 PM
How to add support for WP-Print, to print pages/posts? AndrewRH Atahualpa 3 Wordpress theme 1 Jun 2, 2009 04:13 PM
"more" tag not working on some posts joe hark Atahualpa 3 Wordpress theme 2 Mar 21, 2009 11:38 AM
Only show page title, not excerpts or full, on tag pages. Alphanon Excerpts, Read more, Pagination 2 Mar 3, 2009 10:18 AM
Link not a link in Cat or Tag Mode Steve_T Excerpts, Read more, Pagination 1 Feb 8, 2009 01:05 PM


All times are GMT -6. The time now is 02:59 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.