Tag Info

New answers tagged

0

I know this is an old ticket, but data importing is an ongoing challenge for users, I am sure! I've recently started using WP All Import, and I came across the same problem with ACF fields. Luckily, they came out with an extension for the plugin for exactly this problem: http://www.wpallimport.com/add-ons/ WP All Import ACF Add-On should handle this ...


0

You have two options. Either use get_field or the_field. get_field just reads out the field from the db without and screenoutput. like you did in your first line: $fields = get_field('testimonial'); the_field instead is get_field with an implied echo. <?php the_field('testimonial'); ?> so basically the_field would be enough. Aside you have to ...


0

Try to replace the following: <?php $sectyp = array( 'meta_query' => array( array( 'key' => 'section_type', // selecting the section type "Normal" or "Parallax" 'value' => 'Parallax' ), ), ); ?> with <?php $sectyp = ...


1

It should not be tough. As you suggested you can use ACF to add a custom field in post/page and then use the template_redirect action hook to check if the current page's custom field is a valid URL as well as $_GET['redirect'] is true, wp_redirect to that URL. function my_page_template_redirect() { if( is_url(GET_ACF_FIELD_VALUE( 'CUSTOM_FIELD' )) ...


0

never mind i just figured it out...i had to add a line 'post_type'='contact' and it worked –



Top 50 recent answers are included