Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi – 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

    Thread Starter simon.ker

    (@simonker)

    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;
    }
    Thread Starter simon.ker

    (@simonker)

    ahh – 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’);

    Thread Starter simon.ker

    (@simonker)

    hi Snat it’s with a different host. The database is with another host altogether though if that helps

    Thread Starter simon.ker

    (@simonker)

    Thanks @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

Viewing 5 replies - 1 through 5 (of 5 total)