Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   add taxonomy list in page (http://forum.bytesforall.com/showthread.php?t=20591)

pyfrombzh Jul 4, 2013 12:15 PM

add taxonomy list in page
 
hello
(sorry for my bad english, i'm french --> google traduc)

In a page, I want to display a list of taxonomy but I do not know where to put this code :

Code:

<?php
//list terms in a given taxonomy using wp_list_categories (also useful as a widget if using a PHP Code plugin)

$taxonomy    = 'auteurs';
$orderby      = 'name';
$show_count  = 0;      // 1 for yes, 0 for no
$pad_counts  = 0;      // 1 for yes, 0 for no
$hierarchical = 1;      // 1 for yes, 0 for no
$title        = '';

$args = array(
  'taxonomy'    => $taxonomy,
  'orderby'      => $orderby,
  'show_count'  => $show_count,
  'pad_counts'  => $pad_counts,
  'hierarchical' => $hierarchical,
  'title_li'    => $title
);
?>

<ul>
<?php wp_list_categories( $args ); ?>
</ul>

I can't use template multi... can I use the defaut template ? but where can I put the code ?

I hope this is understandable

juggledad Jul 4, 2013 01:43 PM

you could use the 'exec php' plugin and add the code to the page directly. Make sure to use the TEXT editor not the VISUAL editor

pyfrombzh Jul 4, 2013 01:47 PM

thank you for the answer. Is it possible without plugin?
I would like to limit their number.

juggledad Jul 4, 2013 02:54 PM

You could create a template copying index.php and add that code to it.

pyfrombzh Jul 5, 2013 01:23 PM

ok thanks for help


All times are GMT -6. The time now is 01:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.