Support

Account

Forum Replies Created

  • Thanks, John. I realize now my question may be too convoluted to answer without more details. However, I was able to solve some issues by using a couple plugins to convert my old post types and taxonomies.

    The final issues remaining are:

    How can I update my old Posts to use their existing Featured Images as the value for a new ACF File field I created for all Posts. I have thousands of Posts that already have a Featured Image, now I just need to update the database so those same image attachments are applied to my new ACF File field.

    Additionally, the old database had a column for player names (it was a WordPress custom field). I need all those values to now be migrated to my new Player Taxonomy. This is less of an ACF question and more related to updating values in the database.

  • John, I can’t thank you enough. That’s exactly the info I was looking for. I sincerely appreciate your time and help.

  • Hi John, thanks for the reply!

    These fields would not be visible to the User. There’s only one Admin of the site and it would be up to them to fill out this Member taxonomy for each Post created. Basically, the only goal is to be able to sort Posts on the front-end by Members (similar to how Tags work).

    So far, I have the custom Taxonomy for Members added in the functions.php and it works great, I can add/edit those in the WP Dashboard (again, similar to Tags). I also added an ACF Taxonomy field to my Posts so that I can then choose any taxonomy Member that should be related to a Post.

    The final step here that I’m trying to solve is if a certain Member doesn’t exist yet, it would be ideal to be able to create that new Member from within the Post (rather than having to close the draft post, add the Member in the custom taxonomy area, then re-edit the post and select the member).

    The Create Terms setting does work perfect and I tried that but, like you pointed out, it only allowed me to create the new Member’s name. Is there any way possible that I can have the Create Terms setting also give me fields for slug and description?

  • Sorry to resurrect this thread but is it also possible to only display the custom ACF User fields for certain user Roles in the add/edit view?

  • James, thanks for your great help! Take care.

  • Hi James,

    Thanks for the reply. The basic idea is: I need to create a page on my WordPress site that has a simple form for registered users. This form would have a single text input where they can copy-and-paste any YouTube URL, then submit the form.

    Where it gets more complicated is the submitted URL needs to be passed through a 3rd party API which will gather the YouTube video’s Title, Description, and Thumbnail.

    The final step is to take that data and create a new post in a certain Category and have the post attributed to the user who submitted the form. All of this needs to happen automatically.

    Also, I do own the ACF Pro version already.

  • I can also confirm this seems to be a new bug. The error I see is:

    
    Error. Could not connect to update server (http_request_failed: cURL error 7: Failed to connect to connect.advancedcustomfields.com port 443: Connection refused)
    
  • Correct. Basically, I made a new HTML file and placed in my own /popups/ directory that I created inside my theme folder. This is the entire HTML inside that file:

    
    <div class="popup">
    	<header>
    		<h4><?php the_field('popup_box_title', 'option'); ?></h4>
    	</header>
    	<article>
    		<p>Diclaimer text goes here...</p>
    		<p>
    			<a href="#" title="">Accept</a>
    			<a href="#" title="">Cancel</a>
    		</p>
    	</article>
    </div>
    

    And inside one of my WP pages is a link that loads this HTML file in a Fancybox popup.

    To populate the popup_box_title field inside WordPress, I created a Global field in my options page (https://www.advancedcustomfields.com/resources/options-page/).

    The problem is that global field isn’t working on the popup HTML.

  • Thank you! And last question: is it possible to make my “Content Layout” field group totally global? The issue I’m running into is I’m forced to add a Location Rule when creating that global field group but I don’t want to do that. I’d rather create the generic Content Layout field group without it applying to any specific pages/posts, and then using my other field groups (Home, About, etc.) to clone my generic Content Layout field group.

  • So sorry to ask again but that’s a little confusing to read. Let me try to give a better example. Here are my main Field Groups with the field types and names:

    
    Content Layouts
    	Flexible Content (named: content_row)
    Home Page
    	Clone of content_row (named: content_row_fields)
    About Page
    	Clone of content_row (named: content_row_fields)
    Contact Page
    	Clone of content_row (named: content_row_fields)
    

    Since I’m using the same exact clone for the Home, About, and Contact page field groups, will those conflict?

  • Thanks for the reply. I think the new clone field will work but I’m concerned about conflicts.

    Let’s say my base field group contains a flexible content field with the Name content_row. Is it ok if I then create multiple other field groups with a clone and name them all content_row_fields? Or would each clone also have to use a unique name?

  • Update: I just noticed my ACF plugin had an update and includes a new “clone” field. I’m wondering if that might be the solution.

    Is it possible to reuse the same clone between multiple different field groups without creating a conflict?

  • Thank you for the detailed response; this gives me plenty to dig into and try. Also, to answer your question, Bios will only belong to one Team page.

  • Also, for reference, here’s the code I’m working with. The second issue I’m running into is I’m not sure how to call the get_field value where it says “NEED-ACF-HERE”:

    <?php // show all Video categories with posts
    $custom_terms = get_terms('videos_categories',array('orderby'=>'NEED-ACF-HERE','order'=>'ASC'));
    foreach($custom_terms as $custom_term) {
        wp_reset_query();
        $args = array('post_type' => 'videos',
        	'orderby' => 'date',
        	'posts_per_page' => 4,
            'tax_query' => array(
                array(
                    'taxonomy' => 'videos_categories',
                    'field' => 'slug',
                    'terms' => $custom_term->slug,
                ),
            ),
    	);
    
    	$loop = new WP_Query($args);
    	if($loop->have_posts()) {
    ?>
  • Excellent, that worked for me. Thanks!

  • Thanks. Oddly enough, I don’t see any examples of how the ‘fields’ array should be formatted. I do know what my field keys are but, from reading the acf_form docuementation, I have no idea how to add those keys using the fields array.

  • Has an option like this been implemented yet?

Viewing 17 posts - 1 through 17 (of 17 total)