WordPress.org

Ready to get started?Download WordPress

Forums

WPBadger
Set featured image (10 posts)

  1. bennyhenny
    Member
    Posted 1 year ago #

    Hi, Im have installed the plugin to my server in the plugin folder of wordpress. I now have access to it in the admin site but everytime I select the 'Featured Image' nothing is displaying. It was working fine yesterday but no joy today. Does anyone know why this is happening? I have tried updating all the plugin files and creating new PNG but still no luck.

    Ben

    http://wordpress.org/extend/plugins/wpbadger/

  2. davelester
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ben,

    Did you recently change the theme that you're using on your WordPress site? It's possible that the theme you switched to doesn't have post-thumbnails enabled, which adds the ability to set a Featured Image. You should be able to solve this one of two ways:

    1. Switching back to the theme you originally had active when you installed the plugin
    2. Adding the following code to your theme's functions.php file:

      add_theme_support( 'post-thumbnails' );

      , which was similar advice to what I shared in this ticket.

    Let me know how it goes!

  3. bennyhenny
    Member
    Posted 1 year ago #

    Hi,

    I have recently changed the theme and it work with the default. Rather than change back Ive tried adding the code but still no luck. Which part of the functions.php do I need to paste it into?

  4. davelester
    Member
    Plugin Author

    Posted 1 year ago #

    Make sure you add it to the functions.php of the theme you wish to use -- this will be in the /wp-content/themes/themename/ folder

    You should be able to add the code below the <?php in your file

  5. bennyhenny
    Member
    Posted 1 year ago #

    Excellent, ive managed to get the badge to display in the thumbnail. Thanks. New problem though, now when I create an award and hit 'Publish', I get this message -

    Fatal error: Call to undefined function wpbadger_template() in /home/a1632350/public_html/wp-content/plugins/wpbadger/includes/awards.php on line 893

    Any ideas??

    Cheers :)

  6. bennyhenny
    Member
    Posted 1 year ago #

    This is what is on line 893

    $subject = wpbadger_template(
    get_option( 'wpbadger_awarded_email_subject' ),
    array(
    'BADGE_TITLE' => $badge_title,
    'AWARD_TITLE' => $award_title

    Ben

  7. davelester
    Member
    Plugin Author

    Posted 1 year ago #

    Can you let me know what version of WordPress you're running? 3.4.2 or higher is required

  8. bennyhenny
    Member
    Posted 1 year ago #

    Im running version 3.5.1. I can give you the login details so you can take a look if you dont mind. Im so close I can taste it :)

  9. bennyhenny
    Member
    Posted 1 year ago #

    Hi, I deleted the plugin and then reinstalled it and it seems to work fine. The only slight issue is that it pushes the badges in the spam folder of my email. Is there any way it can go into the main inbox?

    Ben

  10. davelester
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ben,

    Happy to hear that you've got the plugin working. In your email client, you may need to whitelist the domain name the notice was sent from -- the plugin uses WordPress' default way of sending emails, so I'm not sure how else to fix this problem. I would assume that if the badge creation email is being caught in your spam folder, then other wordpress emails would also be trapped there.

    Dave

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.