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 » Center area post/pages »

Custom static content at top of category page

Old Aug 13, 2011, 06:24 AM
7 posts · Mar 2011

I need to have some custom static content, essentially an image and a small description, at the top of each category page (different for each category of course), displayed above a list of titles of the category posts with or without excerpts.

I know there must be some simple solution to this, but even after searching the BFA forums and the Web in genera, l I just haven't been able to hit upon the right way to do it.

I did try the 'List Category Posts' plugin and this worked well for other pages, but I just couldn't understand where to insert the plugin's shortcode for the generated Category page.

Please help!

Thank you.

- Val Souza
www.saligaoserenade.com [redesign in progress]
Old Aug 13, 2011, 06:50 AM
paulae's Avatar
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
There is probably an easier way, but when I needed to have custom images and text at the top of each category page, I created a new widget area for each one and populated them with text widgets calling each image, with associated text. Then I added all of the widget areas to the center column, using the theme options. This was with Atahualpa 3.6.5, in the Content Above the Loop section. This is what the code looks like:

<?php bfa_widget_area('name=letters'); ?>
<?php bfa_widget_area('name=milestones'); ?>
<?php bfa_widget_area('name=obit_widget'); ?>
<?php bfa_widget_area('name=history'); ?>
<?php bfa_widget_area('name=gardenguide'); ?>
<?php bfa_widget_area('name=news'); ?>
<?php bfa_widget_area('name=dineandwine'); ?>
<?php bfa_widget_area('name=books'); ?>
<?php bfa_widget_area('name=teenhealth'); ?>
<?php bfa_widget_area('name=careerdoc'); ?>
<?php bfa_widget_area('name=politics'); ?>
<?php bfa_widget_area('name=biznews'); ?>
You can see it in action at http://larchmontgazette.com. Click on News, Obituaries, Letters, etc., in the top menu, to see the custom images and text. We are no longer publishing except for new obituaries, so the site looks a little bare, especially the sidebars where ads used to be, but it's still functional.

I'm a little surprised this is still working, since I did upgrade to the latest WP version, and I thought the PHP functions couldn't be added anymore to the theme in this manner, but maybe it's still working because I didn't upgrade to the latest version of ATA. I don't know. I'm sure Juggledad or Larry may have more thoughts on this issue.
Old Aug 13, 2011, 06:58 AM
juggledad's Avatar
23,649 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I would add a new widget area (in index.php just above the line
HTML Code:
		<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
then add a text widget with code to display what you want.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Old Aug 13, 2011, 09:32 AM
7 posts · Mar 2011
Thanks Paula and Juggledad. I think the widget idea will work for me.

What remains now is to get rid of the category posts with excerpts and allow only the post titles to display on the category page.

I know I should probably be replacing "the_excerpt()" with "the_title()" in some php file, but which one?

- Val


category page, static content

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mixing static content + excerpts on home and category pages ? jmc34 Center area post/pages 11 May 16, 2011 02:18 AM
how to replace whole category loop for custom content? AlbertS. Center area post/pages 0 May 11, 2011 06:14 PM
static page template - content above the loop nano91 Center area post/pages 3 Mar 4, 2011 10:50 AM
static front page, page title on header, remove content but keep sidebar questions Magic Atahualpa 3 Wordpress theme 0 Jan 25, 2010 12:12 AM
Static page will not display content siefert Center area post/pages 9 Jan 22, 2010 10:32 AM

All times are GMT -6. The time now is 08:39 AM.

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