Provide zblog template_ Zblog topic_ Download and customization of wordpress templates

Zblog Get Tag List Function GetTagList Parameters and Usage Description

Tianxing Studio 2022-06-06 20:07 Zblog function eight hundred and forty 0 Comments

zblog The "GetTagList" of is used to obtain tag tag collection data. The function is constructed in“ zblogphp . php ". As shown below:

 Zblog Get Tag List Function GetTagList Parameters and Usage Description zblog tag zblog tag zblog function GetTagList zblog function 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, get zblog website Data of 10 tag tags sorted by the number of articles under the tag [The following code only takes effect in the theme file]:

 {foreach $zbp->GetTagList(null,array(),array('tag_Count' => 'DESC'),10,'') as $tags} <a href="{$tags.Url}">{$tags.Name}</a> {/foreach}

Other values of the tag object are as follows:

 $tags->ID //id $tags ->Count//The number of articles under the tag $tags ->Alias//tag alias $tags ->Intro//Introduction to tags

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

Cancel Reply welcome you Comment:

 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