How to filter posts with a wp query by a custom dropdown type field with the magic fields plugin
How to filter posts with a wp query by a custom dropdown type field with the magic fields plugin
How to filter posts with a wp query by a custom dropdown type field with the magic fields plugin
I solved the problem by checking the option Editor on the Magic fields post type settings and hiding the visual editor with an extra option on Adminimize settings targeting the Visual Editor with it’s ID on the specific post type. So now qTranslate can see the Title and apply the second language while the visual … Read more
I have worked many times with timthumb, but I do not know magic fields, and I am sorry, but i fail to understand a few things : you want to put a FULL resolution inside a tooltip ? does thispart of your code $image[‘client_image’][2][‘original’]; from above works ? if it does, there is no reason … Read more
You might try to replace the foreach( $myCarousel as $carousel ) with: foreach($myCarousel as $carousel){ $myimg = get(‘projectdetails_image’,1,$carousel); if ( !$myimg ) { // use this if you want to show a default image when no image is available in the post $myimg = get_template_directory_uri().’/images/default_banner.jpg’; } if ( $myimg ) { echo “<div class=”item”.( $counter … Read more
EDIT: (Just had another look at the documentation, and noticed the following) If you look at the code below, you’ll notice that you’re doing it differently. They are calling the field from within a group. $miembros = get_group(‘miembro’); // to see how this made the arrangement can use pr($miembros); // the way this arrangement is … Read more
How do you do a meta query on an encrypted field?
I’m afraid it won’t work quite like that. There are plugins that enable posting from the front end, such as TDO Mini Forms. Or see this answer for creating a form and code yourself.
Magic fields doesn’t necessarily attach images to posts when uploaded via the WP image uploader, and it’s not so simple to get the ID associated with an image. The plugin has its own function to retrieve different sizes: $image_attributes = “w=250&h=150&zc=c&q=90”; // 250x150px, crop to center, quality 90 echo get_image(‘my_field_name’,1,1,1,NULL,$image_attributes); New sizes are generated on-the-fly … Read more
You can remove meta boxes with the remove_meta_box function: function wpse50430_remove_meta_boxes() { // make sure we’re on an admin screen and `post` is set if( !is_admin() && !isset( $_GET[‘post’] ) ) return; if( $_GET[‘post’] == 99 ): // editing page ID 99 remove_meta_box( ‘pageparentdiv’, ‘page’, ‘normal’ ); endif; } add_action( ‘admin_menu’, ‘wpse50430_remove_meta_boxes’ ); To remove … Read more
I had the same problem but I was successful importing from an self produced xml (for the postmeta). <wp:postmeta> <wp:meta_key>telefono</wp:meta_key> <wp:meta_value><![CDATA[$tel_azienda]]></wp:meta_value> </wp:postmeta> The problem was that after that the data were not available to use with MF, I’ve solved it with this mysql query: INSERT IGNORE wp_mf_post_meta (`id`, `group_count`, `field_count`, `post_id`, `field_name`, `order_id`) SELECT `meta_id`, … Read more