linscami
Forum Replies Created
-
Now it works perfectly! Thank you!
Hello. I can’t seem to make this change work. I’m just supposed to delete this line
$thumb = $this->_get_thumb($p, $instance);
and add this code, right?if ($instance['thumbnail']['active'] && $this->thumb) { $tbWidth = $instance['thumbnail']['width']; $tbHeight = $instance['thumbnail']['height']; $thumb = "<a href=\"". $permalink ."\" title=\"{$title}\" target=\"".$this->user_settings['tools']['link']['target']."\">"; if (function_exists('get_the_post_thumbnail') && has_post_thumbnail( $p->id )) { // check if the user has selected a post thumbnail $thumb .= get_the_post_thumbnail($p->id, array($tbWidth, $tbHeight), array('class' => 'wpp-thumbnail', 'alt' => esc_attr($title), 'title' => esc_attr($title)) ); } else { // get first image from post $thumb .= $this->get_img( $p->id, array($tbWidth, $tbHeight), 'first_image' ); } $thumb .= "</a>"; }I really don’t know what I’m doing wrong… But everytime I change it, the thumbnail disappears completely – no featured image, no first image from the post, nothing. Help?
Forum: Networking WordPress
In reply to: Redirect loop problem after primary domain change.We decided to just move everything to the new server and leave the old one empty, so as to not create any form of weird redirect that we had no idea where was coming from. It took a while, but we figured it was the best way to do it.
Thank you very much for your help!
Forum: Networking WordPress
In reply to: Redirect loop problem after primary domain change.The htaccess is in the /public_html folder for the portaltagit.com domain. The portaltagit.ne10.uol.com.br is an “empty” domain, that is set to mirror everything in the root directory of portaltagit.com via apache, so there’s really no redirect set to happen from the server.
Things I’ve noticed:
– The upload folder inside WordPress doesn’t redirect: http://portaltagit.com/wp-content/uploads/sites/6/2013/11/queenie.jpg and works with either URL: http://portaltagit.ne10.uol.com.br/wp-content/uploads/sites/6/2013/11/queenie.jpg– When I access some folder that doesn’t exist, the redirect happens, instead of showing me the 404. Via portaltagit.ne10.uol.com.br I get the 404 page, as it should: http://portaltagit.ne10.uol.com.br/exemple. But via portaltagit.com I just get redirected again: http://portaltagit.com/exemple.
– When I access a folder that does exist, and is outside of WordPress, it doesn’t redirect and works as it should: http://portaltagit.com/termos and http://portaltagit.ne10.uol.com.br/termos.
That’s why I’m thinking there’s some redirect coming from WordPress that I don’t know about, and that is causing the loop when I try to set one on my htaccess file.
Forum: Networking WordPress
In reply to: Redirect loop problem after primary domain change.I checked the tables and used this http://interconnectit.com/products/search-and-replace-for-wordpress-databases/ as instructed, but nothing has changed. I still have the same redirect problems.