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 » Other BFA WordPress Themes »

Tag listings in Atahualpa 2.2


  #1  
Old Feb 17, 2009, 08:01 AM
MrCardinal
 
9 posts · Feb 2009
I administer www.lighthousealliance.org and I am having a problem with the archive listings for tags. When you click on a tag, the results show the content of the posts, but not the title of the blog post. I'm not sure what I did to eliminate the blog post title from showing, but can you assist me in putting it back in there? I can't figure out which template it is in. Here is an example of a tag archive listing, but no titles are showing: http://lighthousealliance.org/site/?tag=colossians
  #2  
Old Feb 17, 2009, 08:46 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
This is how the archive.php should look like in your version 2.21. You may have created a tag.php (that's fine) but perhaps removed line 34. Or you're still using archive.php (note: not archives.php) and removed the title from there?

PHP Code:
<?php
global $options;
foreach (
$options as $value) {
if (
get_settings$value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings$value['id'] ); } }
?>
<?php get_header
(); ?>
            <div id="outer-column-container">
                <div id="inner-column-container">
                    <div id="source-order-container">
                        <div id="middle-column">
                            <div class="inside">
<?php if (function_exists('is_tag')) {is_tag();} ?>
        <?php if (have_posts()) : ?>
       <?php $post $posts[0]; // Hack. Set $post so that the_date() works. ?>
       <?php /* If this is a category archive */ if (is_category()) { ?>
        <h2><?php _e('Archive for''atahualpa'); ?> <?php single_cat_title(); ?></h2>
       <?php /* If this is a tag archive */ } elseif( function_exists('is_tag') && is_tag() ) { ?>
        <h2><?php _e('Posts tagged''atahualpa'); ?> <?php single_tag_title(); ?></h2>
       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
        <h2><?php _e('Archive for''atahualpa'); ?> <?php the_time(__('F jS, Y''atahualpa')); ?></h2>
       <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
        <h2><?php _e('Archive for''atahualpa'); ?> <?php the_time(__('F, Y''atahualpa')); ?></h2>
       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
        <h2><?php _e('Archive for''atahualpa'); ?> <?php the_time(__('Y''atahualpa')); ?></h2>
      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
        <h2><?php _e('Author Archive''atahualpa'); ?></h2>
       <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
        <h2><?php _e('Blog Archives''atahualpa'); ?></h2>
       <?php ?>

<div style="clear: both"></div><div class="line1pix"></div>
        <?php while (have_posts()) : the_post(); ?>
            <?php if (is_last_post()) {?><div class="post-last"><?php } else { ?><div class="post"><?php ?>
                <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to''atahualpa'); ?> <?php if (function_exists('the_title_attribute')) {the_title_attribute();} elseif (function_exists('the_title')) {the_title();} ?>"><?php the_title(); ?></a></h2>
                <div style="clear: left;"></div><div class="entry">
                    <?php if (is_category()) { if ($ata_excerpts_category == "Full Posts") { 
                    
the_content(__('More &raquo;''atahualpa')); } else {
                    
the_excerpt(); }} 
                    elseif (
is_day() OR is_month() OR is_year()) { if ($ata_excerpts_archive == "Full Posts") { 
                    
the_content(__('More &raquo;''atahualpa')); } else {
                    
the_excerpt(); }}
                    elseif (
function_exists('is_tag') && is_tag() ) { if ($ata_excerpts_tag == "Full Posts") { 
                    
the_content(__('More &raquo;''atahualpa')); } else {
                    
the_excerpt(); }}
                    elseif (
is_search()) { if ($ata_excerpts_search == "Full Posts") { 
                    
the_content(__('More &raquo;''atahualpa')); } else {
                    
the_excerpt(); }}
                    else { 
the_excerpt(); } ?>
                <p class="postmetadata">
                <?php the_time(__('F jS, Y''atahualpa')); ?><?php _e(' | ''atahualpa'); ?>
                <?php if ( function_exists('the_tags') && get_the_tags()) {the_tags(__('Tags: ''atahualpa'), __(', ''atahualpa'), __(' | ''atahualpa'));} ?>
                <?php _e('Category:''atahualpa'); ?> <?php the_category(__(', ''atahualpa')) ?><?php _e(' | ''atahualpa'); ?>
                <?php comments_popup_link(__('Leave a comment''atahualpa'),
                              
__('Comments (1)''atahualpa'), __ngettext('Comment (%)''Comments (%)'get_comments_number(), 'atahualpa')); ?>                
                <?php edit_post_link(__('Edit''atahualpa'), __(' | ''atahualpa'), ''); ?>
                              </p>
                </div>
            </div>
        <?php endwhile; ?>


    <?php if(function_exists('wp_pagenavi')) { ?>
    <div class="wp-pagenavi-navigation">
    <?php wp_pagenavi(); ?> 
    </div>
    <?php } else { ?>
    <div class="navigation">
    <div class="older"><?php next_posts_link(__('&laquo; Older Entries''atahualpa')); ?></div>
    <div class="newer"><?php previous_posts_link(__('Newer Entries &raquo;''atahualpa')); ?></div>
    <div style="clear:both"></div>
    </div>
    <?php ?>

    <?php else : ?>
        <h2 class="center"><?php _e('Not Found''atahualpa'); ?></h2>
        <?php include (TEMPLATEPATH '/searchform.php'); ?>
    <?php endif; ?>
                            </div>
                        </div>
                        <div id="left-column">
                            <div class="inside">
<?php get_sidebar(); ?>
                            </div>
                        </div>
                        <div class="clear-columns"><!-- do not delete --></div>
                    </div>
                    <div id="right-column">
                        <div class="inside">
<?php include ('sidebar2.php'); ?>
                        </div>
                    </div>
                    <div class="clear-columns"><!-- do not delete --></div>
                </div>
            </div>
<?php get_footer(); ?>
  #3  
Old Feb 17, 2009, 09:10 AM
MrCardinal
 
9 posts · Feb 2009
I did create a tag.php for my tag archive and I copied the PHP you posted, but it still isn't displaying the titles. This is what my archives.php looks like:
Code:
<?php get_header(); ?>
			<div id="outer-column-container">
				<div id="inner-column-container">
					<div id="source-order-container">
						<div id="middle-column">
							<div class="inside">
<h2><?php _e('Archives by Month:', 'atahualpa'); ?></h2>
	<ul>
		<?php wp_get_archives('type=monthly'); ?>
	</ul>
<h2><?php _e('Archives by Subject:', 'atahualpa'); ?></h2>
	<ul>
		 <?php wp_list_categories(); ?>
	</ul>
							</div>
						</div>
						<div class="clear-columns"><!-- do not delete --></div>
					</div>
					<div id="right-column">
						<div class="inside">
<?php get_sidebar(); ?>
						</div>
					</div>
					<div class="clear-columns"><!-- do not delete --></div>
				</div>
			</div>
<?php get_footer(); ?>
Are not these the lines that are supposed to display the title?

Code:
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'atahualpa'); ?> <?php if (function_exists('the_title_attribute')) {the_title_attribute();} elseif (function_exists('the_title')) {the_title();} ?>"><?php the_title(); ?></a></h2>
That's in my archive.php (without the s)

Last edited by MrCardinal; Feb 17, 2009 at 09:17 AM.
  #4  
Old Feb 17, 2009, 09:21 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by MrCardinal
Are not these the lines that are supposed to display the title?

Code:
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to', 'atahualpa'); ?> <?php if (function_exists('the_title_attribute')) {the_title_attribute();} elseif (function_exists('the_title')) {the_title();} ?>"><?php the_title(); ?></a></h2>
That's in my archive.php (without the s)
If you created a tag.php, the above code should be in tag.php.

Can you post your whole tag.php, also let me know your Wordpress version
  #5  
Old Feb 17, 2009, 09:30 AM
MrCardinal
 
9 posts · Feb 2009
Code:
<?php /*
Template Name: Tag Archive
*/ ?>

<?php get_header(); ?>
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } }
?>
			<div id="outer-column-container">
				<div id="inner-column-container">
					<div id="source-order-container">
						<div id="middle-column">
							<div class="inside">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
	<div class="older"><?php previous_post_link('&laquo; %link') ?></div>
	<div class="newer"><?php next_post_link('%link &raquo;') ?></div>
</div>
		<div class="post" id="post-<?php the_ID(); ?>">
				<!--<div class="calendar">
				<div class="calendar1"><?php the_time('M') ?></div><div style="clear:left"></div>
				<div class="calendar2"><?php the_time('j') ?></div><div style="clear:left"></div>
				<div class="calendar3"><?php the_time('Y') ?></div><div style="clear:left"></div>
				</div>
				<div class="vert1"><div class="vert2"><div class="vert3">--><!--</div></div></div>-->
			<div style="clear: left;"></div><div class="entry">
				<?php the_content('<p class="serif">More &raquo;</p>'); ?>
				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				
			</div>
		</div>
		<?php endwhile; else: ?>
		<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
							</div>
						</div>
						<div id="left-column">
							<div class="inside">
<?php get_sidebar(); ?>
							</div>

						</div>
<?php wp_tag_cloud('number=1000&smallest=10&largest=28'); ?>
						<div class="clear-columns"><!-- do not delete --></div>

					</div>

					<div id="right-column">
						<div class="inside">
<?php include ('sidebar2.php'); ?>
						</div>
					</div>
					<div class="clear-columns"><!-- do not delete --></div>
				</div>
			</div>
<?php get_footer(); ?>
WP 2.7

Where should I insert the PHP you just posted?
  #6  
Old Feb 17, 2009, 09:49 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I took your tag.php code and inserted the title code

PHP Code:
<?php /*
Template Name: Tag Archive
*/ 
?>

<?php get_header(); ?>
<?php
global $options;
foreach (
$options as $value) {
if (
get_settings$value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings$value['id'] ); } }
?>
            <div id="outer-column-container">
                <div id="inner-column-container">
                    <div id="source-order-container">
                        <div id="middle-column">
                            <div class="inside">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="navigation">
    <div class="older"><?php previous_post_link('&laquo; %link'?></div>
    <div class="newer"><?php next_post_link('%link &raquo;'?></div>
</div>
        <div class="post" id="post-<?php the_ID(); ?>">
                <!--<div class="calendar">
                <div class="calendar1"><?php the_time('M'?></div><div style="clear:left"></div>
                <div class="calendar2"><?php the_time('j'?></div><div style="clear:left"></div>
                <div class="calendar3"><?php the_time('Y'?></div><div style="clear:left"></div>
                </div>
                <div class="vert1"><div class="vert2"><div class="vert3">--><!--</div></div></div>-->
            <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to''atahualpa'); ?> <?php if (function_exists('the_title_attribute')) {the_title_attribute();} elseif (function_exists('the_title')) {the_title();} ?>"><?php the_title(); ?></a></h2>
            <div style="clear: left;"></div><div class="entry">
                <?php the_content('<p class="serif">More &raquo;</p>'); ?>
                <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ''after' => '</p>''next_or_number' => 'number')); ?>
                
            </div>
        </div>
        <?php endwhile; else: ?>
        <p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
                            </div>
                        </div>
                        <div id="left-column">
                            <div class="inside">
<?php get_sidebar(); ?>
                            </div>

                        </div>
<?php wp_tag_cloud('number=1000&smallest=10&largest=28'); ?>
                        <div class="clear-columns"><!-- do not delete --></div>

                    </div>

                    <div id="right-column">
                        <div class="inside">
<?php include ('sidebar2.php'); ?>
                        </div>
                    </div>
                    <div class="clear-columns"><!-- do not delete --></div>
                </div>
            </div>
<?php get_footer(); ?>
  #7  
Old Feb 17, 2009, 10:14 AM
MrCardinal
 
9 posts · Feb 2009
thank so you much!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change styling for the Tag Cloud StudioGal Atahualpa 3 Wordpress theme 9 May 28, 2010 07:08 AM
[SOLVED] Probs w/tag line ariels Header configuration & styling 8 Jul 13, 2009 07:41 PM
Atahualpa 3.4: no "title" Tag anymore - with wpSEO 2.7.5 chris New Versions, & Updating 4 Jul 11, 2009 12:31 PM
read more tag not there when clicking on categories cephas Excerpts, Read more, Pagination 4 Jun 20, 2009 09:25 PM
Html tag within textarea v-na Atahualpa 3 Wordpress theme 0 Mar 31, 2009 10:09 AM


All times are GMT -6. The time now is 10:03 AM.


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