Support

Account

Home Forums Search Search Results for 'q'

Search Results for 'q'

reply

  • Just a quick note: had I found this post, it would have saved me 4 hours of research.


    @elliot
    – would you mind putting a simple warning message (with explanation) on top of “create_options” in case a “cache-object.php” file exists? (just simply verify what we experienced by installing it and trying to change the default value of an ACF after having “memcached” installed)

    Thanks!

    Günther

  • The repeater field is exactly what I am doing now, but takes a lot of work.

    We have a client that gives trainings and for example a training is 7 days, but not consequtive days.

    So if i could select 7 different days in 1 date field, that would be awesome and much less work.

  • Hi Elliot. Thanks for this.

    I realise my next question is not related to this one but, let me take a step back and first ask, how do I generate the select html tag based on the ACF selection I have created?

    Based on all my findings, I will document all the results in this post on How to create a search engine using Advanced Custom Fields in the hope that it might help someone else understand this.

    Cheers

  • My goal here is to create a form that:

    1. Generates a dropdown menu from the select options I have created in ACF
    2. Generate an input field where someone can do a search if the dropdown select option is not what they want to use
    3. Generate a submit button that will query the database.
    4. Set up the Query to accept the input variables from the dropdown list and input field
    5. Upon submit, the Query is run and returns the results I am after

    My logic would tell me that the first thing I need to do is create a front end form that will dynamically create a dropdown menu as well as an input field so this is where I begin.

    How to create a front end form That documentation is how to create a form to “allow you to create a front end form to edit a page / post.”

  • Hi @andycheeseman

    Thanks for the request but this seems like a double up of functionality. The post edit screen already contains a field for editing the title.

    Please remember this plugin is for custom fields, not for WP core.

    Perhaps there is some other reason for this request?

    Thanks
    E

  • Hi @ronho

    It is possible that the WP uploader requires you to be logged in to upload any images to the site.

    Perhaps you can use the console log to watch for JS errors one page load and when you click the ‘Add Image’ button.

    Thanks
    E

  • Hi @justin

    Can you please create me an account and provide login details for me to see the issue?

    Please test logging in with this account to double check I can see the issue and also include a step by step guide to seeing the issue.

    I’ll need access to the field group edit screen and the user edit page in question.

    Thanks
    E

  • Hi @lowercase

    You can query the posts and find the ones which have ‘YES’ by reading this tutorial:
    http://www.advancedcustomfields.com/resources/how-to/how-to-query-posts-filtered-by-custom-field-values/


    @smspaul
    – thanks for your help, however the thread you linked to is not related to querying posts, it is regarding loading a radio field value.

    Thanks
    E

  • Hi @panmac

    Thanks for the follow up. I will be looking into this soon. Currently, this issue has had to be placed back in queue behind some other high priority items.

    If you are able to debug some JS, that would be great. Start with the gallery field JS, then move into the ACF input.js file.

    Thanks
    E

  • Hi @Idealien

    I don’t understand what you wrote in question #1. Can you please clearly state the issue? Perhaps some screenshots or a screencast would bypass any english barriers.

    Thanks
    E

  • Hi @sarah@hexagonwebworks.com

    Good question. In short, I’m not completely sure.

    ACF does not perform any PHP based sanitation of the values being saved, but I have a feeling that the WP functions would.

    ACF uses the WP functions such as update_postmeta to save a value. Perhaps you could look into that function for the answer?

    Thanks
    E

  • Hi @rasmuswoelk

    Thanks for the request. I’m not sure if this will make it onto the to-do list at the moment, but we can look into it in the future.

    Cheers
    E

  • Hi @dreamer

    Thanks for the request!

    Ive passed it on to Elliot

  • Hi @WPDragon

    something like this

    <p class="image_photographer">Image courtesy of: <a href="<?php the_field('photographer_url')?>"> <?php the_field('image_photographer') ?> </a></p>

    where “photographer_url” is a text field

    Cheers

  • Hi @elliot,

    Thanks for the reply!….Actually, that was my fault – the photographer name doesnt use the repeater…Thanks for noticing that.

    Also, I think i need to clarify regarding the URL…I’m actually trying to have the name of the Photographer be a hyperlink to a specified url…Each post may have a different photographer….so, I may have something backwards in how I setup my field and code.

    Currently, in the admin for the post – I have the field to type the name of the photographer, but I assume I also need the option to include a URL associated the name.

    The field type that I am currently using is “Text”.

    Below is an example of the code I am using now, which does make the Photographers name clickable – but, now how do I associate a specific URL?

    I left a gap in the code on purpose, coz I assume that is where I fill in the missing code…right?

    <p class="image_photographer">Image Courtesy of: <a href="[URL FIELD CODE GOES HERE]; ?>" target="_blank"><?php the_field('image_photographer'); ?></a>

    Hopefully, you can see what I did wrong there, and what im trying to do

    Thanks!

  • Hi @debosset

    I don’t quite understand what you mean by show the date then add a select list when selected it show the place_and_price dynamically.

    Do you mean that when you tick the checkbox with name date[], the select field will appear next to it?

    If so, this is not a question for the ACF Forum, but for a general Javascript and HTML forum such as stackoverflow.

    Does the above code produce the correct HTML?

    Thanks
    E

  • Hi @WPDragon

    In HTML, a link is created via the <a> tag. You need to use it like this:

    
    <a href="<?php the_field('image_photographer'); ?>" target="_blank">Click here</a>
    
  • Hi @peter_a

    Thanks for the request. I agree that the 11px font size doesn’t quite fit with the new larger fonts in WP 3.8

    I’ve increased the font size and line height and will include this fix in the next version.

    Thanks
    E

  • Hi @Rimfya

    Thanks for the feature requests. I will add these to the to-do list for now, and add them in post v5.

    Cheers
    E

  • Each field will have a type, and name, and a label. To display fields automatically you need to add the code to your theme that references these fields. The code may be different from field type to field type, but you would reference them using their field name. The documentation on this website has many code examples of how to do this. You can also use shortcodes to display data, but you would have to add them into each post individually.

    I recommend you read through this article regarding displaying the data associated with your fields: http://www.advancedcustomfields.com/resources/getting-started/displaying-custom-field-values-in-your-theme/

    From there, have a look at this page (http://www.advancedcustomfields.com/resources/) which will help you learn how take full of advantage of this plugin. If you still need help, you’re welcome to use this forum to ask questions, of course!

  • Hi @vaktmester,

    Thanks for taking the time to request a feature. I have added it to our report for Elliots attention. 🙂

  • Hi @Phillip,

    Thanks for taking the time to investigate this issue and request a feature. I have added it to our report for Elliots attention.

  • I’ll post the my full code here in hopes that seeing all of it might reveal some issues. I am extremely new to PHP so this may look like a train wreck. (I use the genesis framework).

    <?php
    /**
     * Template Name: Professional Single
     */
    
     //* Adding ACF on prefessionals pages 
    add_action( 'genesis_before_entry_content', 'rma_pro_single_acf' );
    function rma_pro_single_acf() {
    
    // If fields are present
    if( get_field('headshot') ||
    	get_field('pro_role') ||
    	get_field('pro_office_phone') ||
    	get_field('pro_cell_phone') ||
    	get_field('pro_email') ||
    	get_field('pro_linkedin')):
    
    $theEmail = get_field('pro_email');
    
      echo
    '<div class="professional-details clearfix">
    			<div class="one-third first">
    				<img src="' . get_field('headshot') . '">
    			</div>
    
    			<div class="two-thirds contact-details">
    				<h6>' . get_field('pro_role') . '</h6>
    				<p><span class="data">Office:</span>' . get_field('pro_office_phone') . '</p>
    				<p><span class="data">Mobile:</span>' . get_field('pro_cell_phone') . '</p>
    				<p><span class="data">Email:</span><a href="mailto:'.antispambot($theEmail).'">' . $theEmail . '</a></p>
    				<p><span class="data">Connect:</span><a href="' . get_field('pro_linkedin') . '"><i class="fa fa-linkedin-square fa-lg"></i> Linkedin</a></p>
    			</div>
    		</div>';    
    
        endif;
    
     }
    
    genesis();
     
    ?>
  • Sadly changing the link text doesn’t make any difference.

    <a href="mailto:'.antispambot($email).'">email me</a></p>

    Same problem. Unless there was another point in your reply which I am missing (I am VERY far from an expert 😉

  • @ttwebco

    I am by far an expert have you tried something like this?

    <?php $theEmail = get_field('pro_email'); ?>
    <a href="mailto:<?php echo antispambot( $theEmail ) ?>">
    Email Me
    </a>
Viewing 25 results - 18,951 through 18,975 (of 21,345 total)