WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page categories and tags (11 posts)

  1. thesteelydane
    Member
    Posted 5 years ago #

    Is there a plugin that will allow me to assign Pages to categories as well as tag pages like I can tag posts?

    I know the wordpress codex tells me this is not possible, but thought there might be a work around?

    Any help would be greatly appreciated!

    nico (www.thesteelydane.com)

  2. MichaelH
    Member
    Posted 5 years ago #

  3. thesteelydane
    Member
    Posted 5 years ago #

    Thank you very much! I got the tags4page plugin to work without problems, I am however having problems with page2cat. I edited the archive.php but with the theme I use it looks a lot different than the default:

    <?php get_header(); rewind_posts(); ?>
    <div class="span-<?php
    		$sidebar_state = get_option('T_sidebar_state');
    
    		if($sidebar_state == "On") {
    			echo "15 colborder home";
    		}
    		else {
    			echo "24 last";
    		}
    		?>">
    
    		<?php
    		query_posts($query_string.'&posts_per_page=24');
    		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()) { ?>
    		<h3 class="sub"><?php single_cat_title(); ?></h3>
     	  <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    		<h3 class="sub">Posts Tagged ‘<?php single_tag_title(); ?>’</h3>
     	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    		<h3 class="sub">Archive for <?php the_time('F jS, Y'); ?></h3>
     	  <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    		<h3 class="sub">Archive for <?php the_time('F, Y'); ?></h3>
     	  <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    		<h3 class="sub">Archive for <?php the_time('Y'); ?></h3>
    	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    		<h3 class="sub">Author Archive</h3>
     	  <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    		<h3 class="sub">Blog Archives</h3>
     	  <?php } ?>
    <div class="clear"></div>
    <div class="content">
    <?php while (have_posts()) : the_post(); ?>
    <div class="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a></h2>
    <?php include (THEMELIB . '/apps/multimedia.php'); ?>
    <?php the_content(); ?>
    <div class="clear"></div>
    <p class="postmetadata"><?php the_time('M d, Y') ?> | <?php the_category(', ') ?> | <?php comments_popup_link('Leave A Comment »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', '| ', ''); ?> </p>
    </div>
    <hr />
    <?php endwhile; ?>
    
    <div class="clear"></div>
    
    <div class="nav-interior">
    			<div class="prev"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="next"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    <div class="clear"></div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    	<?php endif; ?>
    </div>
    		</div>
    <?php
    		$sidebar_state = get_option('T_sidebar_state');
    
    		if($sidebar_state == "On") {
    			get_sidebar() ;
    		}
    		else {
    			echo "";
    		}
    		?>
    
    <!-- Begin Footer -->
    <?php get_footer(); ?>

    Where would I put the hack? I got it to work somewhat by fiddling around with the single_cat line but then headline built into the theme disappeared. Can anyone tell me what to do?

  4. MichaelH
    Member
    Posted 5 years ago #

    This comment seems to address that:
    http://talks.pixline.net/topic.php?id=13#post-32

  5. thesteelydane
    Member
    Posted 5 years ago #

    That's the one I was following actually, but given that I've never written a line of code, it is perhaps not surprising that I'm running into trouble. However, having read more about the plugin, I realise it's not really what I am looking for. I simply want to assign one of my categories to some of my pages, so that when a visitor clicks on a given category, pages assigned to this category shows up alongside posts in that category.

  6. MichaelH
    Member
    Posted 5 years ago #

  7. thesteelydane
    Member
    Posted 5 years ago #

    YES!! Exactly what I needed. Too bad it is no longer being developed, hope someone picks this up. For now, it does exactly what I need it to do! Thank you for your help!

  8. LeeBinder
    Member
    Posted 4 years ago #

    Hi thesteelydane, or anybody else who reads this.

    I have desperately been looking for the WP plugin Page Category Plus. Yellowfish took it off their site.

    I would be more than delighted if you could mail it to me

    lee dot binder att gmx dot net

    Hoping,
    Lee

  9. LeeBinder
    Member
    Posted 4 years ago #

    Here is Page Category Plus 2.2 latest build 2008-04-18. The developer sent it to me because he does not have time to support it anymore so yellowfish took it off their site. I confirm it working in WP 2.8.4.

    Cheers,
    Lee

  10. FromStoneage
    Member
    Posted 4 years ago #

    the link is dead, I can't get either of them to work with 2.8.4 help !

  11. dainismichel
    Member
    Posted 4 years ago #

    working on getting this to work as well...

Topic Closed

This topic has been closed to new replies.

About this Topic