Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Other BFA WordPress Themes (http://forum.bytesforall.com/forumdisplay.php?f=3)
-   -   Tag listings in Atahualpa 2.2 (http://forum.bytesforall.com/showthread.php?t=420)

MrCardinal Feb 17, 2009 07:01 AM

Tag listings in Atahualpa 2.2
 
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

Flynn Feb 17, 2009 07:46 AM

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(); ?>


MrCardinal Feb 17, 2009 08:10 AM

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)

Flynn Feb 17, 2009 08:21 AM

Quote:

Originally Posted by MrCardinal (Post 1636)
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

MrCardinal Feb 17, 2009 08:30 AM

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?

Flynn Feb 17, 2009 08:49 AM

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(); ?>


MrCardinal Feb 17, 2009 09:14 AM

thank so you much!


All times are GMT -6. The time now is 09:29 AM.

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