WordPress.org

Ready to get started?Download WordPress

Forums

Paid Business Listings
short cut code bug (3 posts)

  1. snowboardmommy
    Member
    Posted 2 years ago #

    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/

  2. mitel
    Member
    Posted 2 years ago #

    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.

  3. snowboardmommy
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic