Issues with Block 1

Posted in: Newspaper
Post count: 7

Hello,
I am having issues with “Block 1” module. I want to order categories as I want, but I see that categories get ordered only by name.

For example: http://prntscr.com/88p9ss , you can see that categories are ordered by the first letter of the name. A, B, C.. etc. Can you tell me how I can order in the way I want.

Also I want to show only 3-4 categories and the others will be at “More” tab.

Thank you.

Post count: 7909

Hi,

You need to modify this in code, please check this solution – https://forum.tagdiv.com/topic/can-i-reorder-ajax-dropdown-on-my-own/
Unfortunately there no option to limit categories to a specific number, The ajax categories consider the block title length and the length of the category name and display how many categories is possible.

Thanks!

Post count: 7

Hello,
I have try the solution with slug, but when I have made the necessary changes I am getting following error when I try to login at wp-admin: ” Parse error: syntax error, unexpected ”orderby” (T_CONSTANT_ENCAPSED_STRING), expecting ‘)’ in XXXX/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 147″

If you want, you can get the file here: https://www.dropbox.com/s/y3dckfe0svlcllt/td_block.php?dl=0

Also you can check the screenshot: http://prntscr.com/89xi5p

Thank you.

  • This reply was modified 10 years by iceb.
Post count: 7909

Hi,

Yes, you forgot to add comma – http://screencast.com/t/rYcuX3BTHnk it should work fine.

Thanks!

Post count: 7

Hello,
I have added comma, but again the error appear. Check the following screenshot: http://prntscr.com/8b7acq

In this screenshot you can check the error: http://prntscr.com/8b7atr

Post count: 7909

Hi,

@iceb I have checked this and it works. I refer to add comma after 'number' => 100,http://screencast.com/t/HhW6DHdQXQf

Thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.