Support

Account

Forum Replies Created

  • pixelsandthings answered my question. And I apologize for not taking the time to notice what you mentioned; this is a community forum, not an official support system.

    Thanks all.

  • Thanks for that link, and I’m not trying to extend this, but just for the sake of clarity the breadcrumbs above do read, “Home › Forums › ACF PRO ›”

    Maybe someone should change that to read “ACF Free.”

  • You can pay and get help faster.

    Well, that’s my problem then – I have the PRO version and mistakenly assumed this was support for that version. Thanks for clarifying.

  • WOW. Posted over a week ago, and not one response. Are you ppl alive?

  • docs were never updated so many thanks to Ernst for posting a working method.

    However I add this to the functions.php and now no one, including me as admin, can see the Custom Fields menu 🙁

  • Etic your code did not work. It was still not outputting the expiration date when Credentials was set to expired.

    As I mentioned I’m barely a novice at PHP. After some hours using Google I was able to modify what you gave me into this, and it appears to work:

    <?php
                $args = array(
                    'orderby'=>'nicename',
                    'role'=>'instructor'
                );
    
                $users = get_users( $args );
    
                foreach ( $users as $user ) {
                    print($user->display_name);
                    the_field('credentials', 'user_'.$user->ID);
                    if (get_field('credentials', 'user_'.$user->ID) == 'expired')
                    the_field('credentials_expired_date', 'user_'.$user->ID);
                    the_field('background_check_status', 'user_'.$user->ID);
                    echo '<br/>';
                }
                ?>

    As I add more fields using ACF I’d like to copy/paste/modify so as to output those fields too. But because it appears different than what you suggested, could you confirm this is correct coding?

    My page output now for Credentials current & Background expired is (still needs CSS):

    Lisa RhodescurrentExpired

    Output for Credentials expired & Background current:

    Timmy Biggsexpired20130802Current

  • Etic thank you sooooooooooooo much – that actually works. Of course. Needs some styling but dang!

    Okay I’m really not trying to wear out my welcome, but right now I’ve got an issue that I have no idea how to resolve.

    I created one field like this:

    #1
    Label = Credentials
    Type = Radio button (current/expired)

    #2
    Label = Credentials Expired Date
    Type = Date picker
    Conditional logic is applied if #1 is set to Expired

    During the first test, the page displayed:
    instructor name > Current

    Awesum!

    During the next test I set #1 to expired and the date picker appeared as it should. I set the date to sometime last year.

    Refreshed the page and the page displayed:
    instructor name > Expired20130801 (as I mentioned I need to add some styling so disregard the layout)

    During the next test I set #1 back to Current and the page displayed:
    instructor name > Current20130801

    Uh-oh!

    So even if I select the radio button “Current” the instructor profile stills displays a date.

    I’m guessing something needs to tell something else to refresh or flush so the date only displays if #1 is set to expired???

  • Hey Etic thx for the suggestions.

    I don’t want to use the Home page. I will be creating an “Instructor” page. That is where I need to show the User list with ACF data. So one line for example would display:

    Instructor Name > Contact info > Years of experience > Credentials

    Of course the page would be populated with all instructors but that’s how I see each line appearing.

    Basically. I’m still working on the layout.

    I just came across that tutorial in which the author was creating a home page and thought I could piece together something using his methods. I’m a PHP noob so I’m still figuring out how to start with this. But I don’t mind learning as long as the instructions are clear and make sense.

  • I found this page (http://www.elliotcondon.com/using-the-advanced-custom-fields-plugin-to-create-a-custom-home-page-in-wordpress/) and am trying to use it to get something going on my own.

    Unfortunately, midway down the author is referencing a link under “Building the Home Page template” that no longer exists (http://plugins.elliotcondon.com/advanced-custom-fields/code-examples/).

    Anyone know if this page still exists?

  • Yup I wanted to pull from the user profile and populate a page that list all members and the custom fields I created with ACF. It’s for a cycling instructor club and I needed to show the status (current/expired) of their credentials.

    Thanks.

  • Okay I’m not PHP savvy. I can see how the author page is created but then how does this page get seen on the front-end of the Website?

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