NattyWP - Community Forum
Your member area
NattyWP Help Desk
Home
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
NattyWP Community
«
Configuration and Development
«
Newsday Theme
« Not Last but Featured Article under Categories List on HomePage
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: Not Last but Featured Article under Categories List on HomePage (Read 1830 times)
Nastia
Newbie
Karma: 0
Posts: 8
Not Last but Featured Article under Categories List on HomePage
Could you help to realise showing articles from the Category "Featured Articles (for ex.)" within the area under the Categories List on The Home Page. There is a last article from any category by default now.
Logged
Nastia
Newbie
Karma: 0
Posts: 8
Re: Not Last but Featured Article under Categories List on HomePage
For those who are interested
in index.php there is a function <?php query_posts( 'showposts=1'); ?>
For example if I would like to show on the home page the last publication from the category id=17 you'd edit that function:
<?php query_posts( 'cat=17&showposts=1'); ?>
There are several parametres for this function
Logged
Dmitry A
NattyWP Team
Sr. Member
Karma: 101
Posts: 243
Re: Not Last but Featured Article under Categories List on HomePage
You can read more about Query function here:
http://codex.wordpress.org/User:JamesVL/query_posts
Logged
Dmitry A
http://www.nattywp.com
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
General
-----------------------------
=> General Discussion
=> Member Sites
=> The Lounge
-----------------------------
Configuration and Development
-----------------------------
=> Home Office
=> Blogus
=> Bongo Theme
=> Photonic theme
=> Newsone theme
=> Folium theme
=> Valtik
=> Groovy theme
=> Suit theme
=> Deluxe theme
=> Business theme
=> Nostra theme
=> Mayones theme
=> Easy Touch theme
=> Kongo Theme
=> Newsday Theme
=> Flashlog Theme
=> Simplix Theme
=> Tribune Theme
=> News Hunter Theme
=> Image Hunter Theme
Loading...