Tagged: custom fields, post slider
-
AuthorPosts
-
July 22, 2022 at 8:42 am #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 theentry-title
, before theav-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 2 years, 3 months ago by uomopalese.
July 23, 2022 at 10:50 am #1359271Hi uomopalese,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
NikkoJuly 23, 2022 at 2:26 pm #1359285This reply has been marked as private.July 23, 2022 at 8:50 pm #1359297Hi,
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,
MikeJuly 23, 2022 at 9:49 pm #1359298This reply has been marked as private.July 23, 2022 at 11:08 pm #1359299Hi,
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,
MikeJuly 24, 2022 at 9:50 am #1359305Problem solved, thank you. You can close this thread.
July 24, 2022 at 12:25 pm #1359308Hi,
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 -
AuthorPosts
- The topic ‘CUSTOM FIELDS IN POST SLIDER’ is closed to new replies.