Tzeapa
Forum Replies Created
-
Forum: Plugins
In reply to: [No category parents] Plugin: No category Parents – doesn't work with WP 3.2?Since the 0.2 update this plugin stopped working for me, had to revert to 0.1
With 0.2 the url still looks like this: https://exmaple.com/category/somecategory if I put /%category% in Category Base (WP Permalink Settings) the urls looks like this https://exmaple.com/somecategory/somecategory
I’m using WP 3.3.2…
Forum: Fixing WordPress
In reply to: [W3 Total Cache] W3 Total Cache conflicts with WP-MinifyI used both plugins with no problems, wp-minify was just combining CSS files and w3c was full on.
If those two plugins don’t work together for you, then use google’s pagespeed. It has a combine css function among others. BUT pagespeed increased the loading time by almost half a second. It took half a second before it had all files ready to serve (css, images, scripts) even though cache was working. Eventually doing it manually is better…
Forum: Hacks
In reply to: Stop WordPress from replacing BR tagWhen I edit the comment in mysql or in WP editor I don’t see any
<br/>
BUT if I enter a<br>
tag while writing a comment that becomes<br/> <br/>
(one br tag becomes 2 br tags…) and a free line appears after you submit the comment.I guess I’ll add a top-padding to
comment <p>
and that should do the trick.Thanks for your help !
Forum: Hacks
In reply to: Stop WordPress from replacing BR tagThanks for the involvement but those nasty
<br/>
are still there…Removed the comment from all lines, tried them individually but there is no change.
I had a million trillion issues with WP and always managed to work around them, this one seems a bit impossible…
Forum: Hacks
In reply to: Stop WordPress from replacing BR taghttps://bit.ly/qa5Xcu
Look at the first comment here and check the HTML and find this line:<br/> Now the person he is told
The comment has no blank lines…
Edit: Don’t the comments look too cluttered to you? If Enter twice I’d like to see the free line spacing, in mysql the line is showing…
Forum: Hacks
In reply to: Stop WordPress from replacing BR tagI posted the link…https://bit.ly/q2CnMQ
Forum: Hacks
In reply to: Stop WordPress from replacing BR tagDouble Enter gets replaced with
<p></p>
only in the post, in the comments it gets replaced with<br/>
link: https://bit.ly/q2CnMQ
Forum: Fixing WordPress
In reply to: 301 Redirect Duplicate ContentI already managed to find a solution ??
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} (.*)$ RewriteRule ^(.+)/1$ https://benchmark3d.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} (.*)$ RewriteRule ^(.+)/1/$ https://benchmark3d.com/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} (.*)$ RewriteRule ^(.+)/$ https://benchmark3d.com/$1 [R=301,L]
Just Trial end Error
Forum: Fixing WordPress
In reply to: 301 Redirect Duplicate ContentI’ve done all of the above (except for some-article/1 to some-article redirect) using this inside .htaacces
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} (.*)$ RewriteRule ^(.+)/$ https://domain.com/$1 [R=301,L]
Now I only need to redirect https://domain.com/some-article/1 to https://domain.com/some-article
Forum: Fixing WordPress
In reply to: Meta Description and MultiPaged PostsSo here it goes I’ll try to be as explicit as possible so bare with me ??
The solution is using custom fields and then calling them in your theme’s header.php file…
Here is what I did, I have a lot of posts with 2 and 3 pages and the maximum nr of pages on a post is 4.
On each post with more then 1 page you have to add a number of custom fields. On posts with 2 pages you must add 2 custom fields, on posts with 3 pages you need 3 custom fields and so on…
So on each paged post I added the following custom fields (you can use whatever names you want): metadesc1 (meta description for page 1 of the post) metadesc2 (meta description for the 2nd page of the post), metadesc3 and metadesc4.
Each custom field must contain the following:
<meta name=”description” content=”your meta description for the page” />
So it’s something like this:
metadesc1 custom field = <meta name=”description” content=”meta description for 1st page” />
metadesc2 custom field = <meta name=”description” content=”meta description for 2nd page” />
etc etc
After adding those custom fields to each of the multi page posts you have to add them to your HTML. You do this by calling those custom fields in your theme’s header.php file using get_post_meta function. So add in the header.php file (before </head> ) the following:
<?php if ( ($page < 2) && is_single()) { echo get_post_meta($post->ID, 'metadesc', true); } ?>
this adds the meta description on every 1st page of a post
<?php if ( ($page > 1) && ($page < 3) && is_single() ) { echo get_post_meta($post->ID, 'metadesc2', true); } ?>
this adds the meta description on every 2nd page of a post
<?php if ( ($page > 2) && ($page < 4) && is_single() ) { echo get_post_meta($post->ID, 'metadesc3', true); } ?>
this adds the meta description on every 3rd page of a post
<?php if ( ($page > 3) && ($page < 5) && is_single() ) { echo get_post_meta($post->ID, 'metadesc4', true); } ?>
this adds the meta description on every 4th page of a post.
Although it is a lot of work depending on the number of paged posts, the concept is very easy, if you have any issues or you don’t understand something I will help you as this fix was a god send for my website, every user that uses the <–nexpage–> tag should implement this.
Just hours after I did this Google started indexing 2nd, 3rd etc pages of my articles and they appeared in the search results.
To further improve SEO, you must disable the wordpress canonical url function which will stop google from indexing your paged pages.
To do that simply add the following line in your theme’s funtions.php
remove_action('wp_head', 'rel_canonical');
Edit: Maybe a plugin developer will see this and implement all this stuff into a plugin, as I said before the implementation is very easy but there is almost no useful information on how to add custom meta description on paged posts so I may be the first to do this…
Also using this method you can add keywords or any kind of meta info…
What I forgot to mention is that I use All in One SEO Pack but I disabled if for posts with more than 1 page…
Forum: Fixing WordPress
In reply to: Meta Description and MultiPaged PostsI finally cracked it, got it working perfectly. If someone wants to know how I did it please leave a reply and I will tell you the solution. I won’t write it now because although it’s a very simple solution I don’t have the time to write all the instructions…
Forum: Fixing WordPress
In reply to: Human Error In Migrating Hostssee if this helps https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory.
It’s usually a good idea to install wordpress in the root directory.
/public_html/index.php rather than /public_html/wordpress/index.php but either way should work