Skip to main content

eliwagar 's Library tagged wphelp   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


      1. foreach($new_meta_boxes as $meta_box) {  
      2. if$post->post_category == 44 ) {  
      3.         // Normal Stuff  
      4.        } else {  
      5.           echo'No Options for this Page';  
      6.       }  
      7.   }   

      8. Chris Robinson said:

        Nevermind figured it out :)


        I defined a variable $blogcategory from my custom admin panel then used it like so


        1. foreach($new_meta_boxes as $meta_box) {  
        2. blogcategory = get_option('ct_blog_category'$single = true);  
        3. if( in_category($blogcategory) ) {  
        4.         // Normal Stuff  
        5.        } else {  
        6.           echo'No Options for this Page';  
        7.       }  
        8.   }   

        Thanks again Spencer for the Tut!

14 Aug 08

Umzug WordPress-Blogs

auf einen neuen Hosting-Provider

bueltge.de/...307 - Preview

wordpress wphelp

Giving WordPress Its Own Directory

Wordpress in einem Unterverzeichnis installieren, aber den Blog über die Hauptdomain (Root) aufrufen

codex.wordpress.org/ng_WordPress_Its_Own_Directory - Preview

wordpress wphelp

1 - 8 of 8
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo