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 » Page & Category Menu Bars »

[SOLVED] Display post title only of a category in a page


  #1  
Old Oct 31, 2009, 03:29 AM
ladylulu
 
6 posts · Oct 2009
Hi there!

Can anyone tell me if it is possible to display only the post title of a category in a page?
How did you do it?

Please help me.. :D

Thanks a lot!
  #2  
Old Oct 31, 2009, 04:47 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are you saying that for a category, you just want to list the post titles? Take a look at the WordPress Category Posts plugin - http://wordpress.org/extend/plugins/...ategory-posts/
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; May 3, 2010 at 10:36 AM.
  #3  
Old Oct 31, 2009, 06:44 AM
ladylulu
 
6 posts · Oct 2009
yup yup! :D

ok. will try that plugin.
Thanks a lot!
  #4  
Old Oct 31, 2009, 07:40 AM
ladylulu
 
6 posts · Oct 2009
hi juggledad,

the plugin seems not working.
I added this code

<?php wp_cat_posts(4); ?>

at the page editor but only the title of the page is displayed.
or maybe I miss something. hmm...
  #5  
Old Oct 31, 2009, 08:57 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ok, here is what you do

1) Create a page called Category test
when you publish the page, make note of the address in your browser window. It will be something like
HTML Code:
http://yourdomain.com/wp-admin/page.php?action=edit&post=248
Write down the number at the end, in tis case '248' that is the page number and don't worry if you only have 3 pages, a page is really a special type of post so the numbering is not sequential.

2) go to ATO->Style & edit CENTER COLUMN->The LOOP and find the line
HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
insert the following right after that line
HTML Code:
<?php if (is_page(248)) {wp_cat_posts(4); } ?>
So now, when ever you are displaying page 248, it will list all the items in category '4' on the page.

Hope this helps
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Nov 1, 2009, 09:42 PM
ladylulu
 
6 posts · Oct 2009
hi juggledad,

wow, thanks a lot for that step-by-step and detailed instruction!
that really helps.
thanks again! God Bless you more..
  #7  
Old May 3, 2010, 10:26 AM
vyonte
 
1 posts · May 2010
Medellin, Colombia
Send a message via Skype™ to vyonte
Hi there, I'm looking this option but for one that my customer.

In this case my customer has installed the wishlist plugin. I need that show post in the active category. All the plugins that I installed, (included comment in this thread), do his work, but don't work for me, becaus always show all the category.

With default category widget "Categories", I can show the active category for a user rol, but this don't show to me the post on it. I even thought in the ability to show the last 5 or 10 post.

I use Atahualpa theme

Anywhere here know how can I do this?

Valentin

Last edited by vyonte; May 3, 2010 at 10:40 AM.
  #8  
Old Mar 1, 2011, 06:10 AM
vCopia's Avatar
vCopia
 
72 posts · Jan 2011
Long Island, NY
Jughead,

Can you use this for tags too? If so, would the code be (saying the page # I'm using is the same in your example above):

<?php if (is_page(248)) {wp_tag_posts(4); } ?>
  #9  
Old Mar 1, 2011, 06:24 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The original poster was using a plugin for categories. If you have a plugin for tags that defines the function 'wp-tags-posts()' then sure you can use it.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Mar 1, 2011, 08:02 AM
vCopia's Avatar
vCopia
 
72 posts · Jan 2011
Long Island, NY
Gotcha.

Installed List Category Posts plugin I found referenced elsewhere in forum - probably by you and other admin's herein. Worked great, and the best part was I didn't have to alter the AT code at all. Just had to create a directory under wp-content/themes/atahualpa/ called list-category-posts and place a default template file provided with the plugin to be able to use the shortcode below in posts, pages, anywhere really.

[catlist id=-3 tags=Netflix template=default excludeposts=1218 thumbnail=yes]

Just had to tweek the template so the thumbnails and text lined up the way I wanted, but since one can use the default.php file to create as many other template files as they wish, I was able to design a few different views for different pages.

You got me going on the right road and I ended up where I wanted to be. Thanks for that.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category Page Listing - How to display: Post Title only TotalBalance Excerpts, Read more, Pagination 16 Jan 27, 2010 12:22 PM
[SOLVED] Post title fonts on category pages pushkinpassey Post-Kicker, -Byline & -Footer 2 Oct 1, 2009 09:38 AM
[SOLVED] Turning off Page Title display MrCardinal Atahualpa 3 Wordpress theme 4 Jul 23, 2009 04:47 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] category page list...display images too? joshimotions Excerpts, Read more, Pagination 1 Jun 21, 2009 09:56 AM


All times are GMT -6. The time now is 04:42 PM.


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