Support

Account

Home Forums Search Search Results for 'q'

Search Results for 'q'

topic

  • Unread

    Bug Report:ACF not working with Media Carousel Widget(thumbnail won’t work)

    Hello Sir/Madam

    I am using
    Elementor Pro
    Hello Elementor Theme
    ACF Image Field
    but the thumbnail won’t display
    I don’t know why,please check the image below, thanks
    ACF Bug Report
    ACF Bug Report

  • Solved

    Woocommerce Subscriptions – add ACF to renewal orders

    Hello. Please can someone show me how to add ACF fields in the subscription renewal orders?
    (We need to add a tracking code for the subsequent deliveries).

  • Solving

    ACF Pro Relationship field custom post types filtered by Polylang after save

    I’m posting here to document specific behavior of ACF Pro + Polylang Pro that I ran into.

    I’ve been working through an issue with the ACF relationship field that I’ve noticed back in September and has persisted through the latest updates.

    Data returned for the relationship field didn’t display after save for some post types.
    I have various post types (e.g. project and lecture). After saving the post their IDs are saved seemingly correct in wp_post_meta.

    In wp_post_meta I saw e.g.:
    a:2:{i:0;s:5:"33694";i:1;s:5:"29094";}
    IDs of respectively a project and a lectureem>.

    However, only certain post types would then show up after the reload of the post edit page or front-end (project shows, lecture didn’t).
    They appeared to be loaded from the database incorrectly.

    Digging further, it appeared this was caused by Polylang Pro.

    The project post was marked for translation. The lecture post type wasn’t.
    Additionally, after marking the lecture post type for translation, I then had to apply the default language to the existing posts manually (through bulk edit).
    Only then would the
    lecture posts show in post edit and on the front-end.

    In my opinion the possibility to select untranslated posts in the relationship field, that subsequently are filtered away when getting the field values, because they do not match the current language, is confusing behaviour. I’ve contacted Polylang Pro Support to let them know about this.

    I’ve seen similar issues, though without details on the usage of a multilingual plugin, in:
    * https://support.advancedcustomfields.com/forums/topic/relationship-data-not-saving-for-custom-post-type/ (Relationship data not saving for custom post type)
    * https://support.advancedcustomfields.com/forums/topic/relationship-field-issues-with-specific-post-type (Relationship field issues with specific post type)

    For more context, it appears some values for the relationship field are not saved. In this case, however, data for the relationship was saved, but the display of that data seems to be filtered by Polylang Pro, so that the saved values are incomplete or missing on reload. Wether the data is saved correctly can be checked in the wp_post_meta table as described above.

    Let me know if you need any further details.

    Keep up the good work!

  • Helping

    Library: Uploaded to Post

    Hi all,

    I’m using a page with acf_form() that pulls through the fields for an ID that’s just passed as a query string. I’ve got a gallery and was hoping to just allow uploads to that query string ID but it’s uploading the media files to the ID of the page.

    My question is, is there a way to change the ID of where the images will be saved much like I can do with the acf_form post_id?

  • Unread

    Custom Repeater Field Form

    Looking for a bit of feedback or direction. I’m building an application where customers can submit a list of items to us by filling out a form. The client has asked for a spreadsheet-like interface; because customers may be entering a large number of items.

    Repeater seemed like a good direction, but the layouts (Table, Block, Row) don’t quite fit our needs. There are just a few too many fields being entered for the Table view to look right. The Block and Row become clunking with even just a few items.

    I don’t think the users need in-line editing. Maybe Repeater is too much, although I like the functionality it provides on the back-end.

    Maybe an interface that displays the customer’s items with add/edit buttons that open a modal form?

    Any thoughts/suggestions are greatly appreciated.

  • Solving

    Data update to custom field in CPT not showing

    I have a CPT with CF’s. I have made a change to the data in one of the Custom fields in an existing post, and it does not show the changes in data on my website. It seems like the browser is just loading from cache and not grabbing the new data. I am displaying data based on a query loop in bricks builder if that makes a difference.

  • Unread

    One field inside of while loop show the same content for every entry

    Hello, I am writing a cpt with acf, and one of the fields, show the exact same text for every post in the CPT (the first one). If I set it as draft it moved to the second.
    The strange part is that every other field in the loop works perfectly, only this one is problematic. The field is ‘testimonial_text’;

    Here is my code:

    // Testimonial Slider Shortcode
    function testimonial_slider_shortcode($atts) {
    $atts = shortcode_atts( array(
    'category' => '',
    ), $atts, 'testimonial-slider' );
    $args = array(
    'post_type' => 'testimonials',
    'posts_per_page' => -1,
    'tax_query' => array(

    array(
    'taxonomy' => 'testimonial_category',
    'field' => 'slug',
    'terms' => $atts['category'],
    'operator' => 'AND'
    )

    )
    );

    $testimonials = new WP_Query($args);
    $output = '<div id="testimonial-slider" class="carousel slide full-width" data-ride="carousel">';
    $output .= '

      ';

      $i = 0;
      while($testimonials->have_posts()) {

      $testimonials->the_post();
      $output .= '<li data-target="#testimonial-slider" data-slide-to="'.$i.'" class="'.($i == 0 ? 'active' : '').'">';
      $i++;
      }

      wp_reset_postdata();

      $output .= '

    <div class="carousel-inner">';

    $i = 0;
    while($testimonials->have_posts()) {
    $testimonials->the_post();
    $post = get_post();
    $person_name = get_field('person_name');
    $testimonial_text = get_field('testimonial_text');
    $company_text = get_field('person_company');
    $person_photo = get_field('person_photo');
    $person_photo_url = $person_photo['sizes']['large'];

    $output .= '<div class="item '.($i == 0 ? 'active' : '').'">';
    $output .= '<div class="inner-testimonial">';

    $output .= '<div class="carousel-caption">';
    $output .= '<div class="block-quote-img">';
    $output .= '';
    $output .= 'test';
    $output .= '<span class="author-text" maxlength="2">' .$testimonial_text. '</span>';

    $output .= '</div>';
    $output .= '<p class="author">' .' - ' .$person_name.' , '.$company_text.'</p>';
    $output .= '</div>';
    $output .= '<div class="img-div">';
    $output .= ''.$person_name.'';
    $output .= '</div></div></div>';
    $i++;
    }

    wp_reset_postdata();

    $output .= '</div><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></span></div>';

    return $output;
    }
    add_shortcode('testimonial-slider', 'testimonial_slider_shortcode');

    // Enqueue styles and scripts
    // Global plugin styles should be added to testimonails slider.css
    // Per project styles should be added to testimonial-project.css
    function testimonial_slider_scripts() {
    wp_enqueue_style( 'testimonial-slider-style', plugins_url( '/testimonial-slider.css', __FILE__ ) );
    wp_enqueue_style( 'testimonial-project-style', plugins_url( '/testimonial-project.css', __FILE__ ) );
    // wp_enqueue_style('bootstrap', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css');
    // wp_enqueue_script(
    // 'testimonial-block-script',
    // plugins_url( 'blocks/testimonial-block.js', __FILE__ ),
    // array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components' )
    // );

    }

    add_action( 'wp_enqueue_scripts', 'testimonial_slider_scripts' );

    // Register Gutenberg Block

    add_action('init', 'wp_testimonial_block_init');

    function wp_testimonial_block_init() {

    register_block_type(__DIR__ . '/build', array(
    'render_callback' => 'theHTML'
    ));

    }

    function theHTML($atts) {
    $args = array(
    'post_type' => 'testimonials',
    'posts_per_page' => -1,
    'tax_query' => array(

    array(
    'taxonomy' => 'testimonial_category',
    'field' => 'slug',
    'terms' => $atts,
    'operator' => 'IN'
    )

    )
    );

    $testimonials = new WP_Query($args);
    $output = '<div id="testimonial-slider" class="carousel slide full-width" data-ride="carousel">';
    $output .= '

      ';

      $i = 0;
      while($testimonials->have_posts()) {

      $testimonials->the_post();
      $output .= '<li data-target="#testimonial-slider" data-slide-to="'.$i.'" class="'.($i == 0 ? 'active' : '').'">';
      $i++;
      }

      wp_reset_postdata();

      $output .= '

    <div class="carousel-inner">';

    $i = 0;
    while($testimonials->have_posts()) {
    $testimonials->the_post();
    $post = get_post();
    $person_name = get_field('person_name');
    $testimonial_text = get_field('testimonial_text');
    $company_text = get_field('person_company');
    $person_photo = get_field('person_photo');
    $person_photo_url = $person_photo['sizes']['large'];
    $output .= '<div class="item '.($i == 0 ? 'active' : '').'">';
    $output .= '<div class="inner-testimonial">';

    $output .= '<div class="carousel-caption">';
    $output .= '<div class="block-quote-img">';
    $output .= '';
    $output .= '<span class="author-text" maxlength="20">' .$testimonial_text. '</span>';

    $output .= '</div>';
    $output .= '<p class="author">' .' - ' .$person_name.' , '.$company_text.'</p>';
    $output .= '</div>';
    $output .= '<div class="img-div">';
    $output .= ''.$person_name.'';
    $output .= '</div></div></div>';

    $i++;
    }

    wp_reset_postdata();

    $output .= '</div><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></span></div>';

    return $output;
    }

    This is the code for the acf register

    // Add Custom Fields
    function add_testimonial_custom_fields() {
    if(function_exists('acf_add_local_field_group')):

    acf_add_local_field_group(array(
    'key' => 'group_testimonial',
    'title' => 'Testimonial Fields',
    'fields' => array(
    array(
    'key' => 'field_person_name',
    'label' => 'Person Name',
    'name' => 'person_name',
    'type' => 'text',
    'required' => true,
    'show_in_rest' => true,
    'wrapper' => array(
    'width' => '50',
    ),
    ),
    array(
    'key' => 'field_testimonial_text',
    'label' => 'Testimonial Text',
    'name' => 'testimonial_text',
    'type' => 'wysiwyg',
    'required' => true,
    'show_in_rest' => true,
    'wrapper' => array(
    'width' => '50',
    ),
    ),
    array(
    'key' => 'field_person_photo',
    'label' => 'Person Photo',
    'name' => 'person_photo',
    'type' => 'image',
    'preview_size' => 'full',
    'required' => false,
    'show_in_rest' => true,
    ),
    array(
    'key' => 'field_person_company',
    'label' => 'Company',
    'name' => 'person_company',
    'type' => 'text',
    'required' => false,
    'show_in_rest' => true,
    ),
    ),
    'location' => array(
    array(
    array(
    'param' => 'post_type',
    'operator' => '==',
    'value' => 'testimonials',
    ),
    ),
    ),
    ));

    endif;
    }
    add_action('acf/init', 'add_testimonial_custom_fields');

  • Unread

    Display field on single product page

    Hello, I have made a field to add to the Woocommerce attributes. I have added a picture below for more clearancy.

    explaination

    I am trying to display the field on the single product page. I have added the following code to the content-single-product.php template file.

    
    $terms = get_the_terms( $product->id, 'pa_merk');
    		var_dump($terms);
    		
    		$image = get_field('afbeelding_merk', $terms->taxonomy . '_' . $terms->slug);
    		
    		// Display the image if it exists
    		if ($image) {
    			echo '<img src="' . $image . '" />';
    		} else {
    			echo "<p>Foto niet gevonden.</p>";
    		}
    

    What am I doing wrong?

  • Helping

    Dynamic titles for flexible content pane

    Hi,

    I tried following this : https://support.advancedcustomfields.com/forums/topic/dynamic-title-for-flexible-content-pane/

    For some reason, although it looks ok, when you click on the flexible content field it overwrites and deletes the title in there. I can’t figure out why.

    Has anyone had this/ can figure out why the title disappears (the whole element disappears from the html!)

    Thank you

    The function:

    
    add_filter('acf/fields/flexible_content/layout_title/name=desktop_menu', 'my_acf_fields_flexible_content_layout_title', 10, 4);
    function my_acf_fields_flexible_content_layout_title( $title, $field, $layout, $i ) {
    $rows = get_sub_field('menu_items');
    	  $ret = $title;
    		if ($custom_title = get_sub_field('menu_items')[0]["link_to"]) {
    			$ret = $custom_title;
    		}
    	
    	$custom_title = $title;
    
        return $ret;
    }
    

    Acf structure:

    Flexible content field ‘desktop_menu’, layout below that ‘level_one_links’, level below that ‘menu_items’ repeater, level below that is ‘link_to’ which is a text field

  • Unread

    ACF Relationship-Link product to post (and vice versa)

    Hello Guys:

    I found a similar question to Link product to post (and vice versa) before ACF Relationship was released now still I have some questions about how to use it

    1. I am using Elementor themebuilder single post template but the product(s) type is created by ACF, not woocommerce

    2. then i have product(s) application post created by default WordPress POST

    3. Now my question is how to display the post related to the product(s), which widget can I use, for example, I have the product(s) A, B, C, and D, and product(s) application posts a,b,c,d,e,f,g
    and posts a,b,c,d was related to product(s) A, posts e,f,g was related to product(s) B

    then below the product(s) A description section i want to have another section called related application post to show all the posts related to products A

    is there a quick way can do it in the themebuilder single post template,

    hope you can understand my questions

    thanks

  • Helping

    Set featured image from acf image field from ACF block

    I created an ACF block which has an image field.
    The field is registered with php like this and it is working fine:

    		[
    			'key' => 'field_cpt_case_header_img',
    			'name' => 'cpt_case_header_img',
    			'label' => esc_html__( 'Representetive image', 'wptheme' ),
    			'type' => 'image',
    			'required' => '1',
    			'preview_image' => 'thumbnail',
    		],

    And I have this function to save the image field as featured image:

    function case_set_featured_image( $post_id ) {
    	if ( get_post_type( $post_id ) !== 'case' ) {
    		return;
    	}
    
    	$acf_image = get_field( 'cpt_case_header_img', $post_id );
    
    	if ( $acf_image ) {
    		// Attempt to set ACF image as the featured image
    		$result = update_post_meta( $post_id, '_thumbnail_id', $acf_image['ID'] );
    		$featured_image_id = get_post_thumbnail_id( $post_id );
    	}
    }
    add_action( 'save_post', 'case_set_featured_image' );

    But no featured image is saved, it is empty.

  • Unread

    Random post lists but weigh specific acf field values higher

    I’m using a post order plugin to have some sticky posts and those that aren’t marked as sticky are randomized using the code below

    function randomize_order_with_sticky_on_top ( $post_list, $sort_view_id, $orderBy, $query )
        {
            shuffle($post_list);
                
            //retrieve the sticky list for current sort ID
            $sticky_list = get_post_meta( $sort_view_id , '_sticky_data', TRUE);
            
            if ( ! is_array ( $sticky_list )    ||  count ( $sticky_list ) < 1 )
                return $post_list;    
                
            //remove the sticky items in the $post_list
            foreach ( $sticky_list as $position => $object_id ) 
                {
                    if ( isset ( $post_list [ $object_id ] ) )
                        unset ( $post_list [ array_search( $object_id, $post_list ) ] );
                }
            
            $post_list  =   array_values ( $post_list );
                    
            foreach ( $sticky_list as $position => $object_id ) 
                {
                    // Insert the ID at the specified position
                    array_splice( $post_list, $position - 1, 0, $object_id );
                }
    
            return $post_list;
                
        }

    Each post has a custom field checkbox that can have multiple values, let’s say blue, red and green. They can have combinations of all three values. What like I’d to do is have posts that have the value “green” weight higher than the rest so say any post that has green will be in the top 50% of the randomized order that isn’t sticky. Each time I try a variation it either doesn’t weigh the custom post type or it breaks the sticky feature. Any ideas would be great.

  • Helping

    Advanced Custom Fields plugin error wordpress

    I have installed an updated wordpress theme, and it requires the Advanced Custom Fields plugin, but it generates a fatal error in WordPress when I activate it. Any solution?

  • Solving

    Tag Management in WordPress: Role-Specific Restrictions

    The client requested that tags within a post be divided into 3 groups: Primary tags, Secondary tags, and Other tags.
    I have created an ACF Group containing 3 taxonomies: Primary, Secondary, and Other.
    Furthermore, it was requested that only administrators can add new tags to all 3 groups, while all other users can only add tags to Others. This has also been implemented.
    The only issue is that, for example, when a user with an editor role adds a new tag to Others, the same user can select that tag from the dropdown menu within Primary tags.
    How can this be prevented?

    Thank you in advance!

  • Helping

    Different blocks loading the same stylesheet several times.

    Hello,

    I created several blocks using the ACF Pro 6 block.json. The styles of each block I defined using tailwind. I found it handy to point the style setting of each block to my main style.css, as i am using basically the same classes everywhere.

    But it happens that main main style.css is being loaded several times, as much blocks I have. The blocks being used or not in the page.

    Here is one example of block.json:

    
    
    {
      "name": "customizable-card-08",
      "title": "Text and Video",
      "description": "A customizable card with title, text, link, and color options.",
      "style": "file:../../style.css",
      "category": "gechem-blocks",
      "icon": "format-aside",
      "apiVersion": 2,
      "keywords": ["video", "text"],
      "acf": {
        "mode": "edit",
        "renderTemplate": "card_08.php",
        "postTypes": ["post", "page"]
      },
      "supports": {
        "anchor": true
      }
    }
    

    How to avoid the style.css to be loaded so many times?

    As the style path is required on the json, I tried to point the style in the json to an inexistent file path, it seams to work not repeating loading the style and everything shows fine in the front end as the classes are present in my main style.css. But I imagine it can lead to other issues.

    Is there any solution for this?

  • Solved

    ACF Taxonomy Fields: Tailored Access Permissions for Different Roles

    Hello, everyone,

    I need help in realizing client requirements.

    Within the ACF group, I’ve created three fields (primary_tags, secondary_tags, and other_tags), all of which are of type taxonomy (tag). “Create terms” is set to “switch on,” return value is “term object,” and appearance is set to “multi-select.” These fields are displayed on the posts.

    My client requests that only administrators can add new primary and secondary tags to the list, while other users can only add tags that already exist in the list. As for the “other_tags” field, it is open to all users.

    If you have any ideas on how this could be achieved, please send me your suggestions. Thank you in advance!

  • Solved

    Long loading time

    Hi,
    i use ACF in combination with breakdance and the breakdance post loop builder.

    I want to query the players of a team by their position. Goalkeepers, Defenders, …
    For the players and the teams i use a Bidirectional relationship.

    It takes about 10 seconds to load the page.
    Has someone an idea why it takes so long?


    return
    array(
    'post_type' => 'spieler',
    'meta_query' => array(
    'relation' => 'AND',
    array(
    'key' => 'sp_position',
    'value' => 'Tor',
    'compare' => '='
    ),
    array(
    'key' => 'team_spieler',
    'value' => '"' . get_the_ID() . '"',
    'compare' => 'LIKE',
    ),
    ),
    'orderby'=>'meta_value',
    'meta_key' => 'sp_nachname',
    'order'=>'ASC',
    );

    Screenshot Loop:
    Screenshot Loop

    Screenshot ACF Player:
    Screenshot Loop

  • Solving

    Website crashes when taxonomy i set to “Term object”

    I’m using ACF to make taxonomies in a field group together with Woo, adding the fields to my products.

    However, I want the object of the taxonomy and not the ID but when I set it to “Term object” the entire page where this is referenced crashes, no matter if I’m doing it through WP Bakery or shortcodes.

    Is there a clash somewhere? I’ve tried to use really unique names. It only crashes the site if it’s on “Term object”, not “Term ID” and it only crashes if the field has a value associated with it.

    Field in fieldgroup
    Field in fieldgroup cont
    Taxonomy

  • Unread

    How to delete the value of a field within a group

    I wish I had never started using group fields but here we are!

    Are there any functions in ACF to delete the value of a field, that is within another group field?

    https://www.advancedcustomfields.com/resources/#functions

    I can’t find anything for group fields, only for repeaters or flexible content. I just want to delete a value of a field, or delete any data held in an array in a field.

    Is this possible with one of the ACF functions?

    At the moment i’m querying the post, getting the field and sub-field, setting it to null (or trying to) and then updating the group, and the value is staying the same.

    Any ideas?

  • Solving

    Nested Repeater fields not working

    We have encountered an issue with my implementation and would greatly appreciate your assistance.

    The specific problem I am facing involves retrieving file data from a repeater field within another repeater field. I have reviewed the documentation and community forums, but I’m still unable to resolve the issue.
    Please refer the below screen-shots. screen shot 1 for my ACF field Structure

    Your expertise in resolving this matter would be immensely helpful. If there are any specific details or steps I might be overlooking, please let me know.

    Result i want — inside accordion body i want to show file-name and file-link as a link .

    Please find the attached screen-shot of my code..

    Actual URL for Reference – https://iqac.flame.edu.in/naac/quality-framework-indicators/criteria-01/

  • Solving

    Display post from the selected post object

    Hello,

    First of im really sorry if this question was alreay ask, im not really sure if im entering the proper keywords to ask.

    Im creating a mall website, each mall braches have a shop and dine list.
    1. I have created a post object to a shop/dine to select which mall it is at.
    2. I was abale to show the list of malls the shop rents in the single post.
    3. What i need now is the vise versa, i need to display the shop info inside the mall single post who only select it.

    Example:
    1. Nike shop selected mall-1 and mall-2 along with its info like floors and building it is at. (So this will be different information per mall)
    2. Nike shop single post can display the list of malls it is at (all good here)
    3. Now, when i visit mall-1, i only need to show the information like the floor and building related to that selected mall. No need to display the other mall.

    Not that good in coding since im using a page builder(elementor)

    Hopefully my explanation and example helps to clear my question.

    Also i wish to diplay it via shorcode if possible.

    Edit: i think the keyword for this is biderectional

    Thank you!

  • Unread

    Anyone else have failed backups on manage wp after 6.2.5?

    I don’t know if it’s related or not. But since upgrading to 6.2.5 a few backups on a certain host started to fail. And it’s only sites that use ACF and the_field(). Ones that does not work fine.

    I am quite clueless. The hosts limited log file does not give me a clue. The host says they did not change anything, and MWP says it looks more like something is rejecting/blocking them.

    Could the notice system create problems with memory exhaustion or something? I mean either the log entries or the fact that each field goes trough wp_kses_post(). But the sites work fine, and i suppose the backup script does not load templates.

    I tried the no notice filter, but still fails to backup.

    Does the log just swell or is it rotated? I checked the options table on one of the sites that is an old theme using the_field in excess, and it is around 700 rows / 2 mb. That sounds reasonable. If it created a permanent entry in the options table for each the_field()-call it would have been waay more by now.

    Any ideas? I know this forum is not about ManageWP but would appreciate any ideas or experiences

  • Unread

    acf/save_post on first save – meta not displayed in the form

    Hello
    here is my code, I create a product when I first save a custom post type

    add_action( 'acf/save_post', 'aph_save' );
    function aph_save($post_id)
    {
    if (!empty(get_field( "_aph_product_id", $post_id ))) {
            return; // already got the product so we don't create it again
        }
    
    // create woo commerce product
    // ...
    
    // save product_id to acf 
    update_field('_aph_product_id', $product_id, $post_id);
    
    }

    the problem is that the meta field _aph_product_id on the custom post type form is not update just after the save action, I have to refresh the WP edit page to have it displayed. Is there a way to force the refresh of the form ?

  • Solving

    Need Urgent Solution on the new notification after the last update

    Hello,

    After Updating the Plugin to the Lattes Version (6.2.5) I got this notification on the admin dashboard!:

    ACF PRO — ACF will soon escape unsafe HTML that is rendered by the_field(). We’ve detected the output of some of your fields will be modified by this change. Learn how to fix. Hide details

    welcome_block_title (welcome_block_title) – rendered via the_field
    location_link (locations_0_location_link) – rendered via the_sub_field
    title_style_two_short_description (title_style_two_short_description) – rendered via the_field

    Please Advise how to fix it, The “Learn How to fix Link” is too complicated for non-developer persons…. so please can you explain what is this and how to fix it ASAP please!!!!

    The main purpose of using the plugins is to avoid any code developing Process and this plugin is go beyond this! most people do not have experience in coding or amending the theme Code, so could you please advise how to fix this !!

    **Note: the support team keep sharing a general guide requesting to amend the theme files!
    so please so not share these files and give me the steps to solve it ” I mean If a code need to be added what it is? where to add it? which file?”…

    Thanks alot

  • Helping

    Very basic question – ACF into single-post template

    I’ve have an ACF field group for posts. I can add strings to the custom fields in the post. I can display the fields in the content area of the posts using Short Codes. But I want to display the fields outside of the content area and I want to do this in the single post template. Every tutorial I see they edit single-post.php or files within the theme, and they seem to be using WordPress Classic mode, and they seem to have an easy time getting a custom field to appear on the front end. My site is set up with blocks, using the block editor. Of course, this has a different way of editing the themes/patterns and I’ve seen no video tutorials that show ACF using this method.

    And when I search around, the answer seems unusually complicated, especially compared to how easy it was to set up ACF and to get it working on the backend. This makes me feel like I’m missing something obvious. I don’t have the pro version of ACF yet, so maybe that’s it and maybe if I, did the answer would be easy? Or is it really that complicated?

    Because I am able to pass these custom fields to other plugins, like Slider Revolution, etc, very easily. However, using the block editor, to get these fields to appear on the front end, it seems to involve editing the functions.php file and json file, etc. It seems I need the pro version? And I have to register a block like this:
    https://www.advancedcustomfields.com/resources/acf_register_block_type/

    And then I can add that block to a template and put PHP in there? Is that what needs to happen? Is it really that complicated? Or is there a tutorial I’m missing somewhere?

Viewing 25 results - 276 through 300 (of 21,345 total)