simon.ker
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast Duplicate Post] [Plugin: Duplicate Post] Duplicate AttachmentsHi – thanks for this functionality, it saves a lot of time. I am having a bit of a problem with it though…
If i duplicate a post and the attachments so that i have two identical posts and then i go to the media library and delete one instance of one of the attachments (there are two now due to the duplication) it deletes one instance of the attachment (as you would expect) plus the file (which seems to be shared by the two instances) leaving the second instance of the attachment, in the media library view, linking to a file that no longer exists.. Is there a way to, either not delete the actual file, or to delete both instances so that media library reflects the files that are in the library?
Thanks in advance
Forum: Plugins
In reply to: Disqus AND `comments_template();` running together?Worked out a way to do this based on the category that the blog post appears in
Basically all posts in the “blogger posts” category will use the wordpress comment system and all other posts will use disqus. this code pasted into functions.php will stop discuss activating on post in “blogger posts”
add_filter( 'the_content' , 'disable_disqus_comments' ); function disable_disqus_comments( $content ) { $catid =get_category_id('blogger posts'); if( in_category('blogger posts')) { remove_filter('comments_template', 'dsq_comments_template'); } return $content; }
Forum: Fixing WordPress
In reply to: moving wordpress to new domain but leaving the databaseahh – i see what you are saying but the database is already defined in wp-config as it is external to the existing blog
i guess you were going to suggest changing this?…
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);it is already
/** MySQL hostname */
define(‘DB_HOST’, ‘my.mysql.db’);Forum: Fixing WordPress
In reply to: moving wordpress to new domain but leaving the databasehi Snat it’s with a different host. The database is with another host altogether though if that helps
Forum: Fixing WordPress
In reply to: copying wordpress database to a new serverThanks @go Daddy … That worked a treat…
Unfortunately, however, after uploading the database from strato to go daddy I have found that the same site runs about half the speed on go daddy which is a bit annoying. I will have to take it up with customer support i guess.
Thanks for your help