WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Paid Business Listings] short cut code bug

[Plugin: Paid Business Listings] short cut code bug

  • snowboardmommy

    @snowboardmommy

    When I add the short cut code to a page, it tries to actually display the listings in the admin page and not in the preview/editing area and I get a n error:

    Fatal error: Cannot redeclare getcategoryname() (previously declared in /home/babyshwr/public_html/wbsrd/wp-content/plugins/paid-business-listings/inc/inc_display_gd_listings.php:6) in /home/babyshwr/public_html/wbsrd/wp-content/plugins/paid-business-listings/inc/inc_display_gd_listings.php on line 6

    Also the icon is broken in the admin menu.

    http://wordpress.org/extend/plugins/paid-business-listings/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I get the exact same error with both the default template and my custom one.
    I am using WP 3.2.1.
    Hopefully somebody comes up with a fix soon as there aren’t many other business directory plugins out there that are any good or work.

    To the owner/developer: YOU CANNOT USE ECHO IN THE SHORTCODE CALL BACK FUNCTIONS. This needs to be fixed ASAP. I had to go one month into writing my own resource directory plugin to figure this out for you.

    If anyone else wants to fix this plugin, you need to take the call back functions for the short codes and return a value, without using echo or displaying any type of HTML.

    For one thing, anyway. There may be other issues. This is the one I came across while writing my own plugin and comparing to this plugin’s code.

    HTH

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Paid Business Listings] short cut code bug’ is closed to new replies.