eliwagar 's Library tagged → View Popular
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 ); "
Giving WordPress Its Own Directory
Wordpress in einem Unterverzeichnis installieren, aber den Blog über die Hauptdomain (Root) aufrufen
1 - 8 of 8
Showing 20▼ items per page
Sponsored Links
Ads by Google
Top Contributors
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
