laddi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Disable id attributes in Heading tagThank you very much for the reply.
I am not using custom blocks.
I am using the latest version of WordPress with 2 plugins: Akismet (Disabled) and Wordfence.See screenshot here:
https://ibb.co/cXSv6T6
I am giving you the link to the theme (under-construction).
https://idioms.a2hosted.com/wp-content/themes/express.zip
Please install it and see if it is also doing the same at your end.
I would be highly thankful to you.
Best Regards,
TJForum: Fixing WordPress
In reply to: WP STOP Adding SVG Files in Public HTML OutputHelp!
The latest method to remove that garbage is:
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
But I am not sure whether it’s an official and valid solution or not.
- This reply was modified 2 years, 1 month ago by laddi.
Forum: Fixing WordPress
In reply to: Disable id attributes in Heading tagHelp!
Will anybody tell me how to remove this?Forum: Fixing WordPress
In reply to: Disable id attributes in Heading tagHi Jose,
Thanks for the reply.
But I am not using anything like that.I am building a custom theme and there is nothing I’ve done with the the_content().
Forum: Fixing WordPress
In reply to: WP STOP Adding SVG Files in Public HTML OutputHello, anybody there?
@arnaudbroes Thanks, I got it. Now alive and kicking!
Thanks @arnaudbroes
Forum: Everything else WordPress
In reply to: Logo disappears and appears randomlyI suggest you to delete all the logos once and upload it again in your theme in all the sections. It’s like refreshing and telling your theme again, to which logo to load.
- This reply was modified 3 years, 4 months ago by laddi.
Forum: Everything else WordPress
In reply to: Bug: You don’t have permission to acces page.I think your website has been hacked or you have added any theme or plugin with some malicious code. I suggest you to log into PHPAdmin and then reset the username and password. After the successful login, install WordFence plugin and activate it. It will help you to secure your website from future attacks!
Hope this helps!
ThanksForum: Fixing WordPress
In reply to: Single Post not updating on mobileI don’t see your webpage broken in Mozilla and Chrome browser at all. You might be using outdated browser. Use latest version of Chrome and/or try to reload the page after clearing all the cache and temporary files. I think, it’s not a problem of WordPress rathers it’s the fault of your browser.
- This reply was modified 3 years, 4 months ago by laddi.
Forum: Fixing WordPress
In reply to: Page Template to Show All Comments with PaginationYes, I have got the following code, working like charm. I hope it will also help others who are looking for the same feature to display all the comments on one page with pagination.
Here is the code, enjoy!:
<?php /* Template Name: Display All Comments Template Post Type: page */ ?> <?php /*Set how many comments per page*/ $comments_per_page=4; /*Count comments and count only approved*/ $all_comments = wp_count_comments(); /*If you are going to get only comments from a post you need to change the above code to $all_comments = wp_count_comments($post->ID); */ $all_comments_approved = $all_comments->approved; /*Get Current Page Var*/ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; /*How many comments offset*/ $offset = (($paged-1) * $comments_per_page) ; /*Max number of pages*/ $max_num_pages = ceil( $all_comments_approved / $comments_per_page ); /*Get Comments*/ /*If you are going to get comments from a post you need to add 'post_id' => $post->ID, to the array*/ $comments = get_comments(array( 'status' => 'approve', 'number' => $comments_per_page, 'offset' => $offset )); /*Show Comments*/ if ( $comments ) { foreach ( $comments as $comment ) { echo '<p>' . $comment->comment_content . '</p><br><br>'; } } else { // echo 'No comments found.'; } /*Set current page for pagination*/ $current_page = max(1, get_query_var('paged')); /*Echo paginate links*/ echo paginate_links(array( 'base' => get_pagenum_link(1) . '%_%', 'current' => $current_page, 'total' => $max_num_pages, 'prev_text' => __('« Previous'), 'next_text' => __('Next »'), 'end_size' => 2, 'mid-size' => 3 )); ?>
Thanks to theidioms.com
Forum: Fixing WordPress
In reply to: Page Template to Show All Comments with PaginationThanks for the reply Marcio,
But it’s not working.Hello Joy!
Actually, the website already has thousands of posts so it would be like creating same amount of posts again. Also, the team who post aren’t very familiar with those tools.Forum: Fixing WordPress
In reply to: Post of the Day – Show One Random Post EverydayI need a custom set of code not third-party plugins. Kindly don’t spam the thread with free advisory if you can’t write a code. We all know how to search a plugin.
- This reply was modified 6 years, 11 months ago by laddi.
Forum: Fixing WordPress
In reply to: Page is ‘public’ and ‘published’ but does not appear on the websiteYour welcome. Good to know that your problem resolved. 🙂