All posts by murdah

How to Paginate WordPress Comments

In some cases when you have a lot of comments on a post, you want to split them into pages so user don’t need to scroll a lot. Lot of blogs or websites will never need this, but as I said in some cases this will be needed.

To set it up first go to Settings / Discussion and change comment option like bellow:

Enable check box – Enable threaded (nested) comments “5” levels deep.
Enable check box – Break comments into pages with “7” top level comments per page and the “last” page displayed by default.
Comments should be displayed with the “newer” comments at the top of each page.

So now everything works, your comments are paginated and click on older comments link will add “/comment-page-2#comments” to the end of your URL and get you to second page. All this is good but there is one slight problem with page Title Meta Tag, which will be the same for every comment page. This is no good at all since it will downgrade Google SEO and get you Duplicated Title Tags Warning.

To fix this navigate to your theme folder inside wp-content/themes/your-theme or even better your-theme-child and edit header.php file. Find this line: (it could be different on different themes)

<title><?php wp_title( '|', true, 'right' ); ?></title>

and change it to something like this:

<?php wp_title( '|', true, 'right' ); 
$page_comment = get_query_var('cpage');
if ($page_comment > 0) {echo ' | Page '.$page_comment;}?>

That should be it, your post comment pages will now should be SEO Friendly and shorter to scroll, therefore more user friendly.

How to remove category base url from WordPress

This was mind bugling for me for some time now, every method I tried gave me some kind of error such as broken child category or broken pagination. But at the end I found out the simple solution without of adding any Plugin or editing .htaccess file… To make this work you will need to create the page (in wp dashboard) and page template for every category (this will add possibility of custom category template for each individual category as well). Continue reading How to remove category base url from WordPress

The beginner’s Guide on How to Start a Blog

I will not made another tutorial, don’t be scared! This time I would like to represent you something that every beginner blogger should read before start, mostly because it will shorten long way to successful and visited blog and help you not to do stupid mistakes and make it even  longer (I made it thousands, so maybe not best person to tell you that, but fortunately you learn on mistakes as well).  Anyway I’m  a more Programmer than a Blogger so read what experts say. Continue reading The beginner’s Guide on How to Start a Blog

sliderCat wordpress slider

sliderCat, Responsive shortcode slideshow

Simple responsive shortcode slideshow based on popular FlexSlider with powerful css3 animations and bunch of options.

Plugin is built using WordPress custom post type and custom taxonomy to store slideshows, individual slides and their settings. Featured images are used as Slide images, Title and Content Boxes are used like an animated objects. Tag slugs are used as categories to group slides into separated slideshows and than show them with shortcode in content.
Continue reading sliderCat, Responsive shortcode slideshow