-
In reply to: Single Post doesn't show Featured Image
This reply has been marked as private.In reply to: blog Excerpt Length
Hello,
Can you check out this PHP file instead: wp-content/themes/folie/template-parts/entry-content/
// Display excerpt if auto excerpts are enabled in the admin if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) : if( get_the_excerpt() == '' ){ $content = get_the_content(); $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); echo wp_trim_words( $content, codeless_get_mod('blog_excerpt_length', 40), ' [...]' ); } else the_excerpt();replace with:
// Display excerpt if auto excerpts are enabled in the admin if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) : if( get_the_excerpt() == '' ){ $content = get_the_content(); $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); $content = ''; } else $content = '';Let us know.
Regards!
In reply to: How to make homepage as smooth as demo?
This reply has been marked as private.In reply to: Blog/New Title not showing
This reply has been marked as private.This reply has been marked as private.In reply to: Blog page broken, need developer support
This reply has been marked as private.In reply to: Blog page broken, need developer support
This reply has been marked as private.In reply to: admin author in blog
I have a user “Mari” which is an author in these blog posts.
Still, in blog post it shows that author is “admin”.
As mentioned earlier in this same ticket, I tried to fix the bug in your code but it wouldn’t work.
Also, as mentioned earlier, this bug should be fixed by you but I can’t update my theme to the latest version. 5.2.4. is the latest version that I can download from theme forest and I can’t install envato market plugin, because it says “Something went wrong with the plugin API.”
Please note, that page has been moved and now can be found https://raahenmaa.com
same credentials are still working.
-
This reply was modified 6 years, 4 months ago by
Sini.
Topic: admin author in blog
Hi,
I have blog post in my site and I have set the author as the name. Still in blog post the author is “admin”. I tried the fix from here:
https://support.codeless.co/?action=bbp-search-request&bbp_search=blog+admin
but it does not help.
Best regards,
Sini
In reply to: Codeless builder code in search results
Hello,
We have fixed this and will update the theme with this issue resolved.
For the moment you can fix this by replace the file \templates-parts\blog\parts\entry-content.php with the lines below:
<?php // Display excerpt if auto excerpts are enabled in the admin if ( codeless_get_mod( 'blog_excerpt', true ) && ( ! is_single() || codeless_get_from_element('blog_from_element', false) ) ) : if( get_the_excerpt() == '' ){ $content = get_the_content(); $content = preg_replace("~(?:\[/?)[^/\]]+/?\]~s", '', $content); if(is_search()){ preg_match_all('/\[cl_(.*?)\]/', $content, $matches_vc ); if ( isset($matches_vc[0]) && !empty($matches_vc[0]) ) return; } echo wp_trim_words( $content, codeless_get_mod('blog_excerpt_length', 40), ' [...]' ); } else { if(is_search()){ $content = get_the_content(); preg_match_all('/\[cl_(.*?)\]/', $content, $matches_vc ); if ( isset($matches_vc[0]) && !empty($matches_vc[0]) ) return; } the_excerpt(); } // If excerpts are disabled, display full content else : codeless_hook_post_content_begin(); $content = get_the_content(); $content = str_replace(']]>', ']]>', apply_filters( 'codeless_the_content' , $content )); $page_header = codeless_extract_page_header($content); $content = codeless_strip_shortcode_gallery( str_replace($page_header, '', $content ) ); if(is_search()){ preg_match_all('/\[cl_(.*?)\]/', $content, $matches_vc ); if ( isset($matches_vc[0]) && !empty($matches_vc[0]) ) return; } echo apply_filters('the_content', $content ); codeless_hook_post_content_end(); endif; wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'handel' ), 'after' => '</div>', 'link_before' => '<span class="page-number">', 'link_after' => '</span>', ));Let us know.
Regards!
In reply to: Blog post design issues
This reply has been marked as private.In reply to: Update showing php error
This reply has been marked as private.In reply to: Author Showing as Admin
Hi,
This doesn’t appear to have fixed the issue. I’ve refreshed and updated posts but I’m still seeing Admin as the author.
In reply to: Author Showing as Admin
Hello,
This is strange. i tested this and there is no problem.
Please go to file includes/codeless_functions_blog.php, find this function:codeless_get_entry_meta_author()
Replace all code with this:/** * Generate Post Entry Meta Author * * @since 1.0.0 */ function codeless_get_entry_meta_author(){ $author_name = get_the_author(); // Sanitize to not show empty author on customize preview partial refresh if( empty( $author_name ) || is_customize_preview() ) $author_name = __( 'admin', 'handel' ); // Get the author name; wrap it in a link. $author = sprintf( /* translators: %s: post author */ __( '%s', 'handel' ), '<span class="author"><a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . $author_name . '</a></span>' ); return $author; }Please refresh posts and let us know.
Best regards!
Hi,
When publishing a blog post I have set the author as myself. My name shows on the blog category page but on the actual blog post the author is set to Admin. I have correctly selected myself as the author of the posts in the CMS. The Admin doesn’t exist so it leads to a 404 error. How do I rectify this so the post shows my name as the author?
Thanks.
-
This reply was modified 6 years, 4 months ago by
Search Results for 'blog admin'
-
Topic: admin author in blog
Hi,
I have blog post in my site and I have set the author as the name. Still in blog post the author is “admin”. I tried the fix from here:
https://support.codeless.co/?action=bbp-search-request&bbp_search=blog+admin
but it does not help.
Best regards,
Sini
Topic: Author Showing as Admin
Hi,
When publishing a blog post I have set the author as myself. My name shows on the blog category page but on the actual blog post the author is set to Admin. I have correctly selected myself as the author of the posts in the CMS. The Admin doesn’t exist so it leads to a 404 error. How do I rectify this so the post shows my name as the author?
Thanks.