Provide zblog template_zblog them_wordpress template download and customization

Introduction to the parameters and usage of the function GetCategoryList for zblog to obtain all categories

Tianxing Studio 2023-03-30 19:24 Zblog function three hundred and sixty 0 Comments


zblog The GetCategoryList function of is used to obtain the collection data of the classification list. The function is constructed in“ zblogphp . php ". As shown below:

 Introduction to the parameters and usage of the zblog Get All Categories List function GetCategoryList zblog Functions zblog Categories zblog Functions Page 1

Function parameters:

$select array; Obtain the specified data;

$where array, data acquisition restriction rules

$order array, data acquisition collation;

$limit array to obtain the data quantity limit;

$option array, with additional restriction options, can be used to obtain data within the specified range;

Function output:

Output an array, for example, to obtain the data sorted by the number of articles in the category of all zblog categories [The following code only takes effect in the theme file]:

 {foreach $zbp->GetCategoryList(null, null,array('cate_Count' => 'DESC'),null, null) as $cate} <a href="{$cate.Url}">{$cate.Name}</a> {/foreach}

Other available parameters of classification objects are as follows:

 Introduction to the parameters and usage of the zblog Get All Categories List function GetCategoryList zblog Functions zblog Categories zblog Functions Page 2


Can't find a tutorial that can solve your problem?

You can try to search or ask questions directly online. We also provide charging technical support. If you need it, you can contact us online.

Online questions Online Service

welcome you Comment: Cancel Reply

 Please fill in the verification code
  • Latest articles
  • Hot article ranking
  • Most Comments
Label aggregation
  • Sign in
  • Registered account Forgot your password?
  • register
  • Already have an account? Direct login Forgot your password?
  • Social account login