Paid Business Listings
short cut code bug (3 posts)

  1. snowboardmommy
    Posted 4 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.


  2. mitel
    Posted 4 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
    Posted 4 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Business Listings
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic