Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #821875

    Hello there,

    I would like to create an author page for my website as shown in the Enfold Theme Demo.

    How can I create this author page? When I go to my blogpost and click on the author name the URL doesn’t show the author page. Instead, it automatically redirects to my homepage. I don’t know how to solve this.

    The URL of my author page is: https://www.jazzscripts.com/author/philippe-ramaekers

    I really appreciate any help you can provide.

    Philippe

    #821882

    Hey Philippe,
    Is this the author page in the demo you are referring to: http://kriesi.at/themes/enfold-2017/author/kriesi/
    Can you please include a admin login in the private content area so we can take a closer look.

    Best regards,
    Mike

    #821893

    I am building my blog pages in the advanced editor. I have everything how I want it, but I’ve realized the post meta (Author Name, Post Category, and Post Date) don’t appear by default. (Obviously since I’m using the advanced layout editor)

    So I’m trying to find a way to insert something in the advanced layout editor to retrieve this information automatically for every post.

    Is there anyway to accomplish this? I saw some posts on this but they were closed and I am unsure what to do. Please advise. Thank you.

    hohnesy

    #821980

    Hi Mike,

    Yes, that is the page I was referring to.
    Sure, you can take a closer look. I will include my admin login in the private content area.

    Philippe

    #822063

    Hi,
    Your issue was the Yoast plugin was redirecting the author achieve page.
    I disabled it and your author page is now working. All your blog post have your author link at the top of the post with the date and category.
    I couldn’t find a fix for the Yoast plugin, perhaps their support forum has an answer, try there :)
    Try your author link in the Private Content area & see the screenshot.

    Best regards,
    Mike

    #822087

    Hey Mike,

    Thank you very much! Everything works and looks fine on the website.
    Good to know that the problem was the Yoast Plugin. I will take your advice and try their support.

    Best regards,
    Philippe

    #822091

    Hi Mike. I think I am on the wrong thread. Sorry, Can you help me with this issue: Thank you.

    I am building my blog pages in the advanced editor. I have everything how I want it, but I’ve realized the post meta (Author Name, Post Category, and Post Date) don’t appear by default. (Obviously since I’m using the advanced layout editor)

    So I’m trying to find a way to insert something in the advanced layout editor to retrieve this information automatically for every post.

    Is there anyway to accomplish this? I saw some posts on this but they were closed and I am unsure what to do. Please advise. Thank you.

    hohnesy

    #822094

    PS I have found this link on their website: https://kb.yoast.com/kb/disable-enable-author-archives/
    Problem solved!

    #822142

    Hi,
    Thank you for sharing your solution!
    Shall we close this then?

    Best regards,
    Mike

    #822148

    Hi. Can you help me or let me know where I can start my own thread on this. I appreciate it. Thank you.

    #822150

    Hi,

    @hohnesy
    to add post meta to your posts created with the advanced layout editor, Try adding this code to the end of your functions.php file in Appearance > Editor:

    function post_meta_shortcode(){
    	ob_start();
    	 $taxonomies  = get_object_taxonomies(get_post_type($the_id));
    	    $cats = '';
    	    $excluded_taxonomies =  apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
    
    	    if(!empty($taxonomies))
    	    {
    	        foreach($taxonomies as $taxonomy)
    	        {
    	            if(!in_array($taxonomy, $excluded_taxonomies))
    	            {
    	                $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
    	            }
    	        }
    	    }
    
    	    if(!empty($cats))
    	    {
    	        echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
    	        echo $cats;
    	        echo '</span>';
    	    }
    
    	echo "<span class='post-meta-infos' style='margin-top: -25px;'>";
    	$markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false));
    	echo "<time class='date-container minor-meta updated' $markup>".get_the_time(get_option('date_format'))."</time>";
    	echo "<span class='text-sep text-sep-date'>/</span>";
    
    	    if ( get_comments_number() != "0" || comments_open() ){
    
    	    echo "<span class='comment-container minor-meta'>";
    	    comments_popup_link(  "0 ".__('Comments','avia_framework'),
    	                          "1 ".__('Comment' ,'avia_framework'),
    	                          "% ".__('Comments','avia_framework'),'comments-link',
    	                          "".__('Comments Disabled','avia_framework'));
    	    echo "</span>";
    	    echo "<span class='text-sep text-sep-comment'>/</span>";
    	    }
    
    	    echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." ";
    	    echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>';
    	    echo '<span class="vcard author"><span class="fn">';
    	    the_author_posts_link();
    	    echo '</span></span>';
    	    echo '</span>';
    	    echo '</span>';
    	echo '</span>';
    	return ob_get_clean();
    }
    add_shortcode( 'sc_post_meta', 'post_meta_shortcode' );

    then add this shortcode to your text block element:

    [sc_post_meta]

    Back end:

    Front end:

    Best regards,
    Mike

    #824138

    Thanks Mike. I appreciate it..

    #824289

    Hi,
    Glad to help, shall we close this then?

    Best regards,
    Mike

    #884244

    Hi,
    We will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘How to Create Author Page Enfold’ is closed to new replies.