Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Category Page Plug-in


  #1  
Old Feb 3, 2009, 02:38 PM
brad
 
4 posts · Feb 2009
Category Page Plug-in

First, I would like to thank you for the very user friendly theme that allows idiots like me to make something that looks really nice.

I would like to add the Category Page plug-in, which requires a small code addition.

They say we need to add the code below, based on Kubrich

1) Open archive.php and find lines #8-9:

<h2 class="pagetitle">Archive for the "" Category</h2>

2) Change them into:

if( function_exists(page2cat_output)): page2cat_output($cat); else: ?>
<h2 class="pagetitle">Archive for the "" Category</h2>

(Here is a link to their site http://pixline.net/2008/04/category-page-25-howto-2/en/)

Could you tell me where I would add that code, with your theme?
  #2  
Old Feb 3, 2009, 03:31 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I am not sure if this plugin will work with Atahualpa but try this:

In index.php around line 41-42, find

PHP Code:
<?php // Do this for all posts:
while (have_posts()) : the_post(); ?>
and add this right before it:
PHP Code:
<?php if( is_archive() AND function_exists(page2cat_output)): page2cat_output($cat); ?>
  #3  
Old Feb 3, 2009, 03:45 PM
brad
 
4 posts · Feb 2009
You were correct, that shut it down altogether. Do you know any other plug-ins which do anything similar?

Thanks again for the help
  #4  
Old Feb 3, 2009, 04:15 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Perhaps it works this way: Make a copy of index.php as archive.php, and in that newly created archive.php, find at line 13-15

PHP Code:
<?php // If there are any posts:
if (have_posts()) : 
?>
and put right after it :

PHP Code:
<?php if( function_exists('page2cat_output')): page2cat_output($cat); else: ?> 
<h2 class="pagetitle">Archive for the "" Category</h2>
  #5  
Old Feb 3, 2009, 04:40 PM
brad
 
4 posts · Feb 2009
That did not work either, I get a blank screen

I really appreciate the help
  #6  
Old Feb 3, 2009, 05:03 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I got it working on my test blog like this: In index.php, find at line 13-15
PHP Code:
<?php // If there are any posts:
if (have_posts()) : 
?>
and right after it add:

PHP Code:
<?php if( function_exists('page2cat_output')) { page2cat_output($cat); } ?>
Just in case: You'll have to click on a category, and the content of the associated page will be prepended, and not the other way round (clicking on a page, and the category content appended)

I am leaving that code in the theme so this plugin would be integrated and not require any edits, just like i.e. WP-Pagenavi.

Last edited by Flynn; Feb 3, 2009 at 05:16 PM.
  #7  
Old Jul 15, 2009, 10:45 AM
bcorrigan
 
85 posts · Feb 2009
check out this thread about the limitation of Cat 2 page,
http://forum.bytesforall.com/showthread.php?t=1564

and this one about combining page and category in the menu bar
http://forum.bytesforall.com/showthread.php?t=139
  #8  
Old Jul 15, 2009, 03:38 PM
KatyDigg's Avatar
KatyDigg
 
319 posts · Jul 2009
Quote:
Originally Posted by bcorrigan
check out this thread about the limitation of Cat 2 page,
http://forum.bytesforall.com/showthread.php?t=1564

and this one about combining page and category in the menu bar
http://forum.bytesforall.com/showthread.php?t=139

Thank you, bcorrigan

very much appreciated.
  #9  
Old Jul 31, 2009, 05:05 PM
harpek
 
32 posts · Jun 2009
Hey There,

I am also using Page2Cat with the Atahualpa Theme... I think I may have found a solution as to where to paste the line of code given on the Pixline website. Steps below:

1. From your wordpress dashboard, go to Appearance and click on Editor.

2. Select the file named Main Index Template (index.php)

3. Look for the following code (in an editor, mine are lines 5 and 6):
<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] == 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>


4. Paste the code listed below, from Pixline right below, so that it now reads:
<?php /* If there are any posts: */
if (have_posts()) : $bfa_ata['postcount'] == 0; /* Postcount needed for option "XX first posts full posts, rest excerpts" */ ?>
# if( function_exists(page2cat_output)): page2cat_output($cat); else: ?>


5. Click Update File, and check your blogsite to make sure it's working properly.

That should do the trick.

harpek
  #10  
Old Jul 31, 2009, 07:32 PM
lhanft
 
88 posts · Jul 2009
Cleveland, OH
Wow, aren't you the smart one! That definitely fixed it for me. Thanks so much for figuring that out and for sharing the solution.
  #11  
Old Aug 18, 2009, 09:18 PM
boatnerd06
 
1 posts · Aug 2009
harpek

I tried your fix for it and im still having some troubles. When i paste the pixline line of code under 5 in the code that code just ends up showing up on every one of my pages. Anyhelp would be much appreciated. Im using the most recent version of Atahualpa and Page to Cat.

Bookmarks

Tags
category-page



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I put the category name at the top of a category page? janey73 Header configuration & styling 5 Jan 4, 2012 02:37 PM
Category title on category page, not on each post excerpt kicker paulae Excerpts, Read more, Pagination 4 Jun 22, 2009 11:33 AM
[SOLVED] Adding &quot;share this&quot; plug in to post page...Possible? d_random Plugins & Atahualpa 2 May 19, 2009 02:47 PM
wp-page-numbers plug in Steve_T Plugins & Atahualpa 0 Apr 16, 2009 02:23 PM
Multi-Category Category Page justints Atahualpa 3 Wordpress theme 1 Feb 24, 2009 10:19 AM


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


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