Siddharth
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Problem while redirecting from HTTP to HTTPS@amsgator Thank you for the reply.
I tried it but it still happening the same. I changed the website URL from WP settings to HTTPS and also added the given code.
Forum: Plugins
In reply to: [Rel Nofollow] Force a link to dofollowThat’s awesome.
Thanks for the quickest response.Great work. Have a nice day.
Forum: Hacks
In reply to: Redirect single draft pages in Custom post typeHey, Thanks for your input again. Sorry for late had some emergency situation. Still i couldn’t get this to work but i figured out an alternate way.
I wanted to redirect custom post type drafted single pages to a static page. so i ran an in loop with a condition of “ia_404()” and “a specific string in the url”. looks something like this.
if(is_404() && strpos($curr_url,'<common part in your url>') !== false){ wp_redirect( <url_to_redirect_to>, 301 ); exit; }
This worked like a charm…
Forum: Hacks
In reply to: Redirect single draft pages in Custom post typeHey, Thanks for the reply. But I still couldn’t get it to work. Now for trial, I am using just a simple line of code.
function redirect_scp() { global $post; if ( $post->post_status == "draft") { wp_redirect( 'URL', 301); exit; } } add_action('pre_get_posts', 'redirect_scp');
Still I am not getting redirected. Its giving a 404 page. Am I doing something wrong?
That worked like a charm..
I am gonna put my hands on the description filter stuff soon and will need your help again. ??But thanks a lot for this one. I will mark this one as resolved.
Forum: Fixing WordPress
In reply to: Special Characters Not Visible upon upgradeHey,
I just found a solution for this. I saw my previous wp-config.php file had a line like
define('DB_CHARSET', 'utf8');
and the new one has
define('DB_CHARSET', 'utf8mb4');
I just replaced the new one with the old one and it worked. Not sure if that will cause any other problems on my website.Please let me know if anyone experience any such things.
Regards…
SidForum: Reviews
In reply to: [Form Lightbox] Not goodAdd z-index:9999; to the id “#cboxwrapper”