Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1359151

    Hello, I have a custom postslider.php in my child theme already working.
    I’m using ‘Elegant theme’ blog and I’ve added a custom author meta section just under the entry-title, before the av-vertical-delimiter.
    I have a custom author meta there and is working:
    $qualifica = get_the_author_meta( 'permission', $user->ID );
    I want to show a custom post meta using this code:
    $autore = get_post_meta( get_the_ID(), 'autore_articolo', true);
    but it doesn’t show up.
    The same code is in the custom loop and is working fine.

    Ican’t understand why $qualifca is working while $autore is not.
    Can you help me with this?
    Thanks

    • This topic was modified 1 year, 11 months ago by uomopalese.
    #1359271

    Hi uomopalese,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1359285
    This reply has been marked as private.
    #1359297

    Hi,
    Thanks for the login info, but I don’t see the url to your site, please also include.
    Please try this:
    $autore = get_post_meta( $post->ID, 'autore_articolo', true);
    or this:

    
    $the_id = avia_get_the_id();
    $autore = get_post_meta( $the_id, 'autore_articolo', true);
    

    Best regards,
    Mike

    #1359298
    This reply has been marked as private.
    #1359299

    Hi,
    Thank you, I believe this is working now please check.
    The solution was $autore = get_post_meta( $the_id, 'autore_articolo', true);
    without the $the_id = avia_get_the_id();

    Best regards,
    Mike

    #1359305

    Problem solved, thank you. You can close this thread.

    #1359308

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘CUSTOM FIELDS IN POST SLIDER’ is closed to new replies.