Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter ashdav

    (@ashdav)

    Ok I’ve found a solution.

    In your themes functions.php file, add this code

    function featuredtoRSS($content) {
    global $post;
    if ( has_post_thumbnail( $post->ID ) ){
    $content = '' . get_the_post_thumbnail( $post->ID, 'full', array( 'style' => 'float:left; margin:10px 15px px 0;' ) ) . '' . $content;
    }
    return $content;
    }
    
    add_filter('the_excerpt_rss', 'featuredtoRSS');
    add_filter('the_content_feed', 'featuredtoRSS');
    
    ?>

    This will then call up the featured image of your post and embed it in your RSS feed. You can change the margins and styles within that code too.

    Crucially, I found it took a few hours to wade through to my feed. I’m using Feedburner on Mailchimp and, because it didn’t work instantly, I figured it didn’t work. Give it time.

    This code won’t allow the use of *|RSSITEM:IMAGE|* but if you embed the post in Mailchimp via *|RSSITEM:CONTENT|* then it will add a full-sized featured image followed by your post’s excerpt.

    Hopefully this solution works for other people! Remember to give it some time to update ??

    Ash

    Thread Starter ashdav

    (@ashdav)

    You’re right, none of them have a post id! All other fields are there though.

    Here’s a screenshot https://www.photoguides.net/photoguides-db-postid.png

    *That does make sense actually. If they all have the same id it would assume the user is reading the same article and not publish again?

    Thread Starter ashdav

    (@ashdav)

    *By 3 fields I meant three rows. As though only three items had been published.

    Thread Starter ashdav

    (@ashdav)

    Yep the db table matches that.

    Jump over to this article https://www.photoguides.net/14-standout-entries-from-the-2012-sony-photography-awards
    Facebook login button is on the right sidebar under ‘join us’. Can you try it for yourself and see how it reacts when you read different articles?
    Also the ‘view all’ page doesn’t show accurate activity. Confusing.

    Thanks,
    Ash

    Thread Starter ashdav

    (@ashdav)

    There is a db table wp_awd_fcbk_opengraph_actions_activity with only three fields in it, three articles that could have been published (although I would have expected more publishes – we’ve had at least 20 facebook registrations today)

    That appears to be the only facebook AWD table on the database. There is also wp_fb_friends and wp_fb_lastlogin. We did have a different fb connect app installed before switching to AWD.

    Tried deactivating both AWD and opengraph but no change.

    Thread Starter ashdav

    (@ashdav)

    Cheers. Below is the ajax response. Nothing was published for the article being read, and the ‘May 27, 2012 1:37am’ article was the last one published (which published after deleting the previous action).

    {"id":"10151014034876579","success":true,"htmlResponse":"","callbackJs":"","debug":true,"activity_list":"<table class=\"awd_fcbk_opengraph_actions_activity_list simple\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"2\">Post<\/th>\n\t\t\t\t\t<th>Action<\/th>\n\t\t\t\t\t<th>Object<\/th>\n\t\t\t\t\t<th>Date<\/th>\n\t\t\t\t\t<th colspan=\"3\">Controls<\/th>\n\t\t\t\t<\/tr>\n\t\t\t<\/thead><tbody><tr><td><\/td><td><\/td><td>News.reads<\/td><td>Article<\/td><td>May 27, 2012 1:37 am<\/td><td><a href="" title="View Post">View<\/a><\/td><td></a><a href="http:\/\/www.facebook.com\/AshDav\/activity\/10151014034876579" title="View activity on Facebook">Feed<\/a><\/td><td></a><a href="#" title="Delete activity"><\/a><\/td><\/tr><\/tbody><\/table>"}</a>

    Thread Starter ashdav

    (@ashdav)

    Not sure what I’m looking for sorry. I’ve got firebug running on an article that should publish. How do I check the response?

    Thread Starter ashdav

    (@ashdav)

    Thanks, but perhaps I didn’t explain the issue properly.

    If I publish a completely new article on my site and read it for more than 11 seconds, nothing will be published on facebook. The only way to make it publish is to delete any previous publishing action (of which there is only one) and then it will publish the article I’m reading.

    It seems to only allow one publish action entirely, not per post.

    Cheers,
    Ash

    Thread Starter ashdav

    (@ashdav)

    I’ve been toying around with it and I think I’ve ‘better diagnosed’ the problem.
    It will publish on facebook, but only if I delete all the recent activity via the ‘my activity’ window. It will only publish one thing.

    Even after leaving it for 12 hours and reading a new fresh article it wouldn’t publish on facebook until I’d deleted the previous action from My Activity. Why might this be?

    Forum: Installing WordPress
    In reply to: 2.8 is evil

    Well something rather shocking has occurred with my blog.
    You can first read about my mishaps on my post just above

    The day after this my whole web hosting account was suspended!
    I had no idea why, but after hours of waiting i got a reply to my dispute saying i was using excessive resources.
    This wasnt true. I’d done nothing out of the ordinary so i asked to see further details.
    This is what they replied with…

    You’ll see from the below server log that it was WordPress on your account using excessive resources,
    photoguides.net 0.30 0.54 0.5
    Top Process %CPU 35.0 [php]
    Top Process %CPU 25.0 /usr/bin/php /home/photogui/public_html/index.php
    Top Process %CPU 10.5 /usr/bin/php /home/photogui/public_html/wp-admin/update.php

    The above shows your account using 25% of the overall CPU on the server, which is why the account was suspended.

    25% of the whole web hosts server my account was using!
    and all because of the corrupt update which broke my site.

    It’s fixed now, but somethings VERY wrong with this.

    Forum: Installing WordPress
    In reply to: 2.8 is evil

    The 2.8 upgrade firstly wiped my themes. I restored the backups and went back to 2.7.
    I made a few changes to my file structure and tried the 2.8 upgrade again, taking all appropriate action such as deactivating all plugins.
    2.8 upgraded and my home page looked fine, but every other page showed up as raw text.
    I restored the backups again, but somehow the pages were still corrupt. I looked into the files and about 10 new .php files had been added which weren’t there before. All of my html tags, head tags and body tags were missing.
    I could not fix it, no matter what i did. I tried restoring the backups again but somehow my original backups of the theme was still broken.
    I ended up upgrading to 2.8 and rebuilding my whole site.
    Very annoying process.

    I’ve been having the same problem on my blog, Photo Guides.
    Comments on posts function perfectly, but they don’t on any of the pages which is quite annoying, especially on a photography website.

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