I can't get the category top description to show

This topic contains 30 replies, has 5 voices, and was last updated by  Vikas 10 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #1653

    Kevin Heath
    Buyer
    Post count: 33

    Hi Stroudsco

    At the moment the plugin category archives is still calling the standard WordPress category description.

    You can download my plugin CategoryTinymce from WordPress and that gives you tinymce and shortcode abilities to the default description box.

    I stopped support for the free plugin at wp3.9 but the top description still works. It might be a suitable stop gap measure until this plugin is fixed and then you just need to cut and paste across.

    Kevin

    #1706

    stroudsco
    Expired Member
    Post count: 121

    Hi Kevin,

    Thanks for your post buddy, I tried it but got the following results in the attached file.

    Im with wpengine who do an auto update to all sites, this was done yesterday, so I’m not sure if its the new WP version which has caused the problem in the picture.

    As you can see when putting in a single image, it repeats the image at the top of the page as well.

    It wouldn’t run the meta slider at all.

    Thanks anyway, Vika’s any news sir?

    Cheers

    #1707

    stroudsco
    Expired Member
    Post count: 121

    Forgot to add the picture…

    #1712

    Kevin Heath
    Buyer
    Post count: 33

    Hi stroudsco

    THat’s strange that all the formatting works ok but the shortcodes doesn’t. There must be something in the geodirectory plugin that takes the do shortcode filter out.

    If you are using metaslider then you can use the php tag to display the images.

    You need to add the template tags to geodirectory-templates > listing-gridview.php and listing-listview.

    At the top of the page before the first

      is an option.

      I use adrotate and while the shortcode does not work the template tag

      
      
      
      <?php echo adrotate_group(1); ?>
      
      

      This is the test I did – http://naturesites.co.uk/places/national-nature-reserves/

      Obviously it is best if the category description works but it is a possible option till the developers have sorted out all the bugs in the plugin.

    #1713

    Kevin Heath
    Buyer
    Post count: 33

    Actually change that,

    put your template tags in the geodir-listing.php file just under the term description.

    #1714

    Kevin Heath
    Buyer
    Post count: 33

    even better – to get the shortcodes to work in the normal wordpress category description:

    open geodir-listing.php and at about line 50 you will find:

    
    
    
            <div class="term_description"><?php _e( wpautop(wptexturize($current_term->description)), GEODIRECTORY_TEXTDOMAIN ) ; ?></div>
    

    change it to:

    
    
    
       <div class="term_description"><?php _e( wpautop(wptexturize(do_shortcode($current_term->description))), GEODIRECTORY_TEXTDOMAIN ) ; ?></div>
    

    and you should be able to run shortcodes.

    Kevin

    #1717

    stroudsco
    Expired Member
    Post count: 121

    Thanks Kevin,

    Testing it now, noticed you still have a ” /> in the top left of the demo screen?

    Cheers Again sir!

    Dave

    #1721

    Kevin Heath
    Buyer
    Post count: 33

    Hi Dave

    It will need a bit more work as it looks like all the line breaks and paragraphs are being stripped.

    There may also be a need for a condtional because if you visit my home page you’ll see the ad being displayed as part of the popular posts lists.

    I’m guessing that popular posts list is actually the category with the most listings being displayed.

    But as a short term solution until geodirectory sorts it out I guess it is passable.

    Kevin

    #1724

    stroudsco
    Expired Member
    Post count: 121

    Hi Kevin,

    Thanks so much!

    This is the one thing i needed to work over everything.

    I will do some further testing and let you know but some far its looking good 🙂

    Dave

    #1725

    stroudsco
    Expired Member
    Post count: 121

    Hi Kevin

    Got it working with a meta slider and looking good, I found you have to save it within the plain text area, if you save it with any text in the visual area it breaks the slider and the text – it also repeats the content at the top of the page.

    This is the same problem I’m having with the places listing box.

    Image with it happy and wiring below thanks again buddy.

    Dave

    #1726

    stroudsco
    Expired Member
    Post count: 121

    opps

    #1795

    Vikas
    Full Member
    Post count: 1128

    Hi,

    I have fixed this bug. It will work fine in next release.

    Thanks

    #2009

    amolin
    Buyer
    Post count: 161

    Now description works, but the %location_name% parameter is not working:

    http://geodirectorytest.com.82-194-77-85.linux2.blackslot.com/negocios/salamanca/C/hotels/

    #2010

    Vikas
    Full Member
    Post count: 1128

    Hi,
    This location description does not work like the Geotheme. Right now none of the variables are available.
    I will introduce them later.

    #2017

    amolin
    Buyer
    Post count: 161

    Ok, you left the Geotheme label below the Category Top Description:

    “This will appear at the top of the category lsiting. Use %location_name% to show the current locations name.”

Viewing 15 posts - 16 through 30 (of 31 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount