Tagged: Author Page, create, enfold
-
AuthorPosts
-
July 16, 2017 at 1:25 am #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
July 16, 2017 at 2:19 am #821882Hey 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,
MikeJuly 16, 2017 at 3:08 am #821893I 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
July 16, 2017 at 12:25 pm #821980Hi 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
July 16, 2017 at 4:21 pm #822063Hi,
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,
MikeJuly 16, 2017 at 4:55 pm #822087Hey 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,
PhilippeJuly 16, 2017 at 5:13 pm #822091Hi 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
July 16, 2017 at 5:14 pm #822094PS I have found this link on their website: https://kb.yoast.com/kb/disable-enable-author-archives/
Problem solved!July 16, 2017 at 7:28 pm #822142July 16, 2017 at 8:18 pm #822148Hi. Can you help me or let me know where I can start my own thread on this. I appreciate it. Thank you.
July 16, 2017 at 8:20 pm #822150Hi,
@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,
MikeJuly 19, 2017 at 8:24 pm #824138Thanks Mike. I appreciate it..
July 20, 2017 at 2:10 am #824289December 3, 2017 at 4:26 am #884244 -
AuthorPosts
- The topic ‘How to Create Author Page Enfold’ is closed to new replies.