Support

Account

Forum Replies Created

  • I don’t think this is an ACF issue anymore. I tried this standard WP call:
    $expirationtime = get_post_meta($post->ID, 'expiration', true);
    and got the same results – no value returned.

    I think Divi is probably the culprit, so I’ll see if their support can shed any light on the problem.

    Thanks again for looking at this, John.

    EDIT: I have it working now, and for anyone interested in the solution, the check for the expiry field needs to be in Divi\includes\builder\module\blog.php (not in page.php)

  • I’ve verified #1-3: the field exists on the post, it has a value, and I’m trying to get the correct field name. And #4 is going to be a PITA.

    I upgraded to version 5 to see if that might help. It fixed some minor problems (eg edit fields appearance, location) but it had no effect on filtering expired posts.

    I’ve disabled my other plugins (Duplicate Page, MINDBODY Widget, Monarch Plugin, WP Super Cache) to no effect.

    Don’t know what to try next. Any thoughts about what might be interfering? Are there error log files I can search – maybe get_field() is throwing an error or not being found?

    PS. Appreciate your help, and I’m still Googling around for ideas and things to try.

  • Thanks for the suggestion, John. I modified your code slightly:

    $expirationtime = get_field("expiration");
     echo "<div>Expiration date: " . $expirationtime . "</div>";

    and this is the result:
    <div>Expiration date: </div>

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