Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2024-07-10 16:13:18

skewray
Member
From: Sunny Southern California
Registered: 2013-04-25
Posts: 166
Website

Re: Modify plugin to give different link style

Nice.

<txp:php>
  global $s ;

  $category = parse('<txp:category />');
  $count = safe_count( 'textpattern',
    "(`Category1` = '" . $category . "'"
   ." OR `Category2` = '" . $category . "')"
   ." AND `Section` = '" . $s . "'"
   ." AND `Posted` < now()"
   ." AND `Status` = '" . STATUS_LIVE . "'"
   , 0 ) ;
  echo $count ;

</txp:php>

Offline

Board footer

Powered by FluxBB