How can I show only if custom field has content [closed]

Again, I’m not familiar with Advanced Custom Fields but you may be able to store the returned value into a variable then test if that variable is empty, like so: <?php $pista1a = types_render_field(“pista-1a”, array(“argument1″=>”value1″,”argument2″=>”value2″,”argument2″=>”value2”)); ?> <ul> <?php if( ! empty( $pista1a ) ) : ?> <li> <?php echo $pista1a; ?> </li> <?php endif; ?> … Read more

Problem with type plugin and custom taxonomies

You need to pass the category name as well if you want to show posts from specific category.. You just need to add one more param to the get_posts array. REPLACE THIS <? $products = get_posts( array(‘post_type’ => ‘products’, ‘posts_per_page’ => 400,) ); ?> WIth THIS <? $products = get_posts( array(‘post_type’ => ‘products’, ‘category_name’ => … Read more

Modify a plugin function output from another plugin

I will never understand the point of these wildly complicated “helper” wrapper/plugins… but that aside… The plugin provides a lot of filters that might help you out. I think that the types_view filter might be what you want. Something like this is a plugin file or your theme functions.php might do it: add_filter(‘types_view’,’do_shortcode’); I do … Read more

Create metaboxes based on custom post type

When defining your MetaBox before registering it, just set the PostTypes it is applicable for: $f711_meta_boxes[] = array( ‘id’ => ‘details’, ‘title’ => __( ‘Details’, ‘f711_theme’ ), ‘pages’ => array( ‘publicity’ ), // change this values ‘context’ => ‘normal’, ‘priority’ => ‘high’, ‘fields’ => array( array( ‘name’ => __( ‘Fischi ist’, ‘f711_theme’ ), ‘desc’ => … Read more