Bitcoin Forum
May 09, 2024, 02:01:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [BOUNTY] Wordpress help  (Read 568 times)
GraphicImpulse (OP)
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
May 09, 2013, 02:08:35 PM
 #1

I'm not the best at wordpress as the simplified layout befuddles me a bit. My template is using page-archive.php (pastebin of php here http://pastebin.com/kfY8EEJP) and loading ALL posts (see www.fbklegal.com/news)

I need a quick .php file written up ("category-FBKNews.php") that makes page-archive.php only show posts that belong to "FBK News" category. The 3 categories I have are "Slider" "Buttons" and "FBK News" I do not want Slider and Button posts to show as they currently are showing. Been trying all day to do this but simply don't understand the slugs and everything.

Since it's just a simple php file and small tweak, I'm offering .25 BTC to do it.

Skype - GraphicImpulse
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
torba
Member
**
Offline Offline

Activity: 100
Merit: 10



View Profile
May 09, 2013, 04:07:15 PM
Last edit: May 09, 2013, 04:21:41 PM by torba
 #2

Add this  before line 75 in pastebin to exclude categories.
Code:
query_posts('category_name=FBK News’); 
Duplicate the file, change name and change line 2 to whatever you want, like
Code:
/* Template Name: FBK News Category */
The modified page will appear in the template options when you make a page.
No need to pay me.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!