Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #726107

    Hi,

    In this website: http://www.strandwealth.com/news/(Which is in maintance mode) **Login details are in private**
    I am using the elegant and grid style to present my blog overview page. But i am trying to figure how to make i can show the author of each blog and also when the blog was created. I have been going through the loop-index.php but it seems to be only executing the code for the single post only.

    Can you help me to figuring how i can affect the blog over page please?

    #727375

    Hey AboveDigital,

    Thank you for using Enfold.

    You need to modify the framework > php > postslider.php file. Look for this code around line 441:

    $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>";
    						$meta .= "</div>
    ";
    

    You can add the author and date info there. Use the following functions.

    // https://developer.wordpress.org/reference/functions/get_the_author_meta/
    // https://codex.wordpress.org/Function_Reference/get_the_date

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.