Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   full posts on Category pages without the link (http://forum.bytesforall.com/showthread.php?t=1550)

curious May 5, 2009 03:22 PM

full posts on Category pages without the link
 
Hi there,
in the theme options (Show full posts or only excerpts, on Category pages?) I decided me for showing full posts on the Category pages. My Question is: Can I remove the Link-Function (permanent-links?) in the displayed Posttitles? I have only a few post at a time for one category, and it's not neccesary to view them as single posts. It's enough to see the posts listed as full posts among each other on one category page.

greetings,

curious

Flynn May 5, 2009 08:01 PM

In the Post Heading section in index.php find:

if( !is_single() AND !is_page() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

(or similar) and change to

if( !is_single() AND !is_page() AND !is_category() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

curious May 6, 2009 01:05 AM

Hi flynn,

thanks for fast the repose.
The new code is working fine in the category section..

But I have a additional question.

By using the calendar widget (whereI have the possibilty to click on a date,
and all Category Articles I have post on that specific day appear),
all the posts have furthermore the permalinks in their titles.

Can I remove that, too?

greetings,

curious

Flynn May 6, 2009 07:24 AM

if( !is_single() AND !is_page() AND !is_category() AND !is_date() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php

See http://codex.wordpress.org/Conditional_Tags for more options

!is_....() means "if this is not ..."

curious May 6, 2009 07:49 AM

Great, that works!

Thanks Flynn!!


greetings,
curious

curious May 6, 2009 07:56 AM

Hi flynn,

is it possible to adjust the calendar, that the calendar show only the entries of only one category (I specify)?


All times are GMT -6. The time now is 09:55 PM.

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