-
AuthorPosts
-
December 24, 2016 at 1:57 am #728098
I have added the following code into:
/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php$author_id = $entry->post_author;
$author_url = get_site_url().”/author/”.get_the_author_link();
$author_name = get_the_author_meta( ‘display_name’ , $author_id );
$meta .= ‘ by ‘.$author_name.”;$meta .= “</div>”;
And it is showing the date and author below the post (see Private for link) except for one post. I have tried recreating the post and it is still not working.
Can you give any advice on how it pulls this information and what other areas I can check to see why just this one post is not working?
December 25, 2016 at 4:41 pm #728222Hey ryan_boomstreet,
That is because the first post is on a different access point.
We can help you if you provide us backend details.Best regards,
BasilisJanuary 3, 2017 at 5:37 am #728839Basilis,
Thanks for getting back to me, I was unable to reply due to the forums being closed for Holidays. I’ve added a login for you and put it in the private area. Please let me know what you find.
January 4, 2017 at 6:22 am #729293Hi,
Did you modify any of the theme files? Please update the theme to version 3.8.4.
Best regards,
IsmaelJanuary 10, 2017 at 4:26 pm #731611There are some modified files in the child theme.
Enfold has been upgraded to 3.8.4.
January 13, 2017 at 4:42 pm #733195How can I change the access point the post is on? I am not sure exactly what you mean by that.
January 14, 2017 at 6:19 am #733454Hi,
I checked the site again today and every posts have the author info. Is this fixed?
Best regards,
IsmaelJanuary 14, 2017 at 6:34 am #733462no the post titled “Squash + skinnypasta = a new mom’s dream meal” is still missing date and author for some reason.
January 16, 2017 at 5:22 am #733874Hi,
I tried logging in to have a look at the post you mentioned, but the details don’t seem to work anymore?
Best regards,
RikardJanuary 16, 2017 at 4:07 pm #734131User account has been re enabled. Same creds as before.
January 18, 2017 at 8:35 am #735185Hi,
no the post titled “Squash + skinnypasta = a new mom’s dream meal” is still missing date and author for some reason.
Yes, I didn’t notice that. My bad. I’m not sure why it doesn’t have the date info. Have you tried to delete it then re-create it from scratch? Make sure to delete it permanently in the trash to avoid minor slug or url conflict. And what happens if the plugins are deactivated?
Best regards,
IsmaelJanuary 20, 2017 at 5:59 am #736207I tried deleting and deleting from trash then re creating it from scratch.
It still doesn’t the date just for that post. Is there anything I should be looking for about that post specifically or in the database?
January 25, 2017 at 6:25 am #738125Hey!
If you want to check the database, look for the _posts table, search for the ID of the post then check if the post_date and post_modified columns are set. Is this the only post with the issue?
Best regards,
IsmaelMarch 9, 2017 at 5:42 pm #758473Hey sorry for not getting back sooner. We had some major upgrades that were done to the site and I wanted to see if that fixed the issue.
Unfortunately we are still having the issue. It seems that it’s always one or two posts that have the problem.
I have checked the database and both fields are populated (see attached screenshots) and let me know if you need anything else or what I can do to get the date to show up.
March 9, 2017 at 5:47 pm #758476Also this is the code in the postslider.php file
if($show_meta && !empty($excerpt))
{
$meta = “<div class=’slide-meta’>”;
if ( $commentCount != “0” || comments_open($the_id) && $entry->post_type != ‘portfolio’)
{
$link_add = $commentCount === “0” ? “#respond” : “#comments”;
$text_add = $commentCount === “1” ? __(‘Comment’, ‘avia_framework’ ) : __(‘Comments’, ‘avia_framework’ );// $meta .= “<div class=’slide-meta-comments’>{$commentCount} {$text_add}</div><div class=’slide-meta-del’>/</div>”;
}
$markup = avia_markup_helper(array(‘context’ => ‘entry_time’,’echo’=>false, ‘id’=>$the_id, ‘custom_markup’=>$custom_markup));
$meta .= “<time class=’slide-meta-time updated’ $markup>” .get_the_time(get_option(‘date_format’), $the_id).”</time>”;$author_id = $entry->post_author;
$author_url = get_author_posts_url( $author_id);
$author_name = get_the_author_meta( ‘display_name’ , $author_id );$meta .= ” by $author_name“;
$meta .= “</div>”;
if($blogstyle !== “elegant-blog”)
{
$output .= $meta;
$meta = “”;
}March 15, 2017 at 9:37 am #761243Hey!
Please post the FTP details in the private field so that we can check the postslider.php file.
Best regards,
IsmaelMarch 17, 2017 at 6:54 pm #762648It is working now did you change anything?
March 18, 2017 at 5:14 am #762819 -
AuthorPosts
- You must be logged in to reply to this topic.