07 Nov 09
Function Web Design & Development Blog - » Tutorial: Creating Custom Write Panels in WordPress
-
@ Spencer
I was trying to associate specific meta boxes to a category like you explained above but it doesnt seem to work
- foreach($new_meta_boxes as $meta_box) {
- if( $post->post_category == 44 ) {
- // Normal Stuff
- } else {
- echo'No Options for this Page';
- }
- }
Chris Robinson said:
Nevermind figured it out
I defined a variable $blogcategory from my custom admin panel then used it like so
- foreach($new_meta_boxes as $meta_box) {
- blogcategory = get_option('ct_blog_category', $single = true);
- if( in_category($blogcategory) ) {
- // Normal Stuff
- } else {
- echo'No Options for this Page';
- }
- }
Thanks again Spencer for the Tut!
06 Nov 09
Function Web Design & Development Blog - » Revisited: Creating Custom Write Panels in WordPress
"$data = get_post_meta( $post->ID, 'key', true ); "
Sponsored Links
Ads by Google
Top Tags
- 66katzencontent,
- 30webdesign,
- 30pharma,
- 28marktforschung,
- 28reiten,
- 25visualization,
- 25web2.0,
- 22photoshop,
- 21islandpferd,
- 19webtool,
View All Recent Tags (39)
- 7islandpferd,
- 5pferdezucht,
- 4skincare,
- 3zuchthengst,
- 3bigbangtheory,
- 3wpmu,
- 3reiten,
- 3marktforschung,
- 2wphelp,
- 2custom_fields,
- 2pferde,
- 2wptheme,
- 2hufschuh,
- 2markenname,
- 2netpromoter,
- 1island,
- 1wörterbuch,
- 1Genetik,
- 1maps,
- 1geocaching,
- 1karten,
- 1Outdoor,
- 1sitzschulung,
- 1Vibrator,
- 1datenressource,
- 1typologie,
- 1joomla,
- 1zelter,
- 1tierarzt,
- 1wohnung,
- 1wohnungssuche,
- 1zucht,
- 1deckhengst,
- 1marketing,
- 1neuromarketing,
- 1visualization,
- 1sattel,
- 1baumlos,
- 1fohlen
Public Tags (154)
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo