Category Page Listing - How to display: Post Title only
Using WP 2.7 & A3 is there an easy way for a novice user to configure Category Pages to only display the Post Title of posts assigned to each Category? If so, can you also override the "Home" page number of posts listed to list all posts assigned to a category?
If not, which php file(s) & specific entries need to be modified to do what I'm asking? I'm a real novice at this stuff so thx. in advance for any help. P.S. Wasn't even sure if this was the correct forum to post my question so posted similar to WP forum post. |
Quote:
PHP Code:
Code:
<!-- Post Body Copy --> Code:
// Post Footer To exclude the post-bodycopy on category pages, wrap line ~ 122-137 into the conditional statement as described above PHP Code:
Quote:
|
Thanks Flynn, worked like a charm. I even did same for my tag cloud:
Code:
<?php if ( !is_category() AND !is_tag() ) { ?> Quote:
|
Quote:
PHP Code:
PHP Code:
|
Thx. Flynn, once again that did it. Thx. also for the quick tutorial that I'll be able to reuse often.
Since it appears this type of customization requires a mod to the theme, I guess I'll request a feature enhancement to the Atahualpa 3 theme to make these changes via the Theme Options tab. Perhaps I'm wrong but as the number of posts increase for a blog, I've found users much prefer Category and Tag pages to list posts by Title only, without all the other fluff. Otherwise, it just takes too long to quickly locate/scroll to a particular post of interest. I wouldn't want to do it under the global "Read" options as I think it's only needed for the Category and Tag pages. Reasonable request? |
I might add things like that later but my to-do list is already quite long
|
Understand. Let's say I tweak the default theme to do the things I need and save it. When I use the default theme for a new blog is there any reason I can't just overwrite the default phps with the mod ones? Or, after activating the theme are there blog/domain specific changes made to the files that should not be overwritten?
|
You can always re-apply your mods to new versions. But (for now, while the theme is still changing a bit) you may have to find the right places inside the same files again. I.e. in 3.2.1 all theme options appearing in the files will be named something like $cur_opt['bfa_ata_option_name'] instead of $bfa_ata_option_name due to speed improvements. But that's already a rather big change. What you cannot do when applying your custom patches is to strictly go by line numbers and to assume everything is going to be identical in the new version, without even looking at the code.
I am also going to add "hooks" to the theme in a later version so all these custom file changes can be kept in a single file. |
RE: Category Page Listing - How to display: Post Title only
For version 3.3.3. How do I make it to work? And how do I make it to list a certain number of posting(with only titles) in the category page? Thanks for your help! |
Either wrap the post parts that you don't want into conditional tags http://codex.wordpress.org/Conditional_Tags, in index.php
Or make a copy of index.php as category.php and delete the post parts you don't want in there. These are the post parts: <?php bfa_post_kicker(); // Post Kicker: To edit the output, see functions/bfa_post_parts.php ?> <?php bfa_post_headline(); // Post Headline: To edit the output, see functions/bfa_post_parts.php ?> <?php bfa_post_byline(); // Post Byline: To edit the output, see functions/bfa_post_parts.php ?> <?php bfa_post_bodycopy(); // Post Bodycopy: To edit the output, see functions/bfa_post_parts.php ?> <?php bfa_post_pagination(); // Post Pagination: To edit the output, see functions/bfa_post_parts.php ?> <?php // Archives Pages. Displayed on a specific static "Page" page, if configured at Theme Options -> Archives Pages: bfa_archives_page(); // To edit the output, see functions/bfa_post_parts.php ?> <?php bfa_post_footer(); // Post Footer: To edit the output, see functions/bfa_post_parts.php ?> This is a conditional tag <?php if ( is_category() ) { ?> Do this only if this is a category page... <?php } ?> |
You might want to look at the List Category Posts plugin. I use it to do what you want to do.
You create a page or post, then use short code to get an unordered list of your posts in the category by the category id. There are a few sorting and display options. -Bill |
Quote:
Anyway, hi Flynn, how about displaying post titles of a certain category in a page. Example, I have Articles, Blog, and Uncategorized as categories. then I only wanted to display post under Articles in a particular page. How do you do that? And titles of post should be arranged in unnumbered list. :D I am afraid I need your reply as soon as possible. :( But I know you are busy too. :D So, if you have time kindly reply. Thanks a lot! :) Godspeed. |
please don't double post. See the answer I gave in http://forum.bytesforall.com/showthread.php?t=4140 post #5
|
hi my question is same How to display: Post Title only on category pages but as Flynn said i am not able to find the <!-- Post Body Copy --> in my index css file. i am using latest version pls help me.
|
hello i am not able to understand this process pls tell me from where to delete the code , hey where are you all pls reply me
i am not able to see catogory portion in main index file pls help me |
did you try what was explained in http://forum.bytesforall.com/showthread.php?t=4140 post #5?
if you did and you have problems, what is happening What version of Atahalpa are you running What is your url? |
I need help with this.
I am using a more recent version of wordpress and can't find the certain line well actually I found something simular but cannot make the category pages only show excerpt text and title. Can you help me with this? What line do I need to find for wordpress 2.8 and 2.9? I don't have a category.php but do have index.php This is in my index.php code: Code:
|
All times are GMT -6. The time now is 03:10 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.