Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

add taxonomy list in page


  #1  
Old Jul 4, 2013, 01:15 PM
pyfrombzh
 
3 posts · Jul 2013
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
  #2  
Old Jul 4, 2013, 02:43 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
  #3  
Old Jul 4, 2013, 02:47 PM
pyfrombzh
 
3 posts · Jul 2013
thank you for the answer. Is it possible without plugin?
I would like to limit their number.
  #4  
Old Jul 4, 2013, 03:54 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You could create a template copying index.php and add that code to it.
  #5  
Old Jul 5, 2013, 02:23 PM
pyfrombzh
 
3 posts · Jul 2013
ok thanks for help

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display current taxonomy rlgold2 Center area post/pages 0 Jul 23, 2012 11:52 AM
Taxonomy under the title adrian Page & Category Menu Bars 7 Dec 17, 2011 08:32 PM
Custom Taxonomy bydersjoint Sidebars & Widgets 1 Mar 9, 2010 06:37 PM
[SOLVED] Taxonomy causes sidebars to disappear ncitravel Plugins & Atahualpa 9 Aug 29, 2009 10:19 PM


All times are GMT -6. The time now is 11:44 AM.


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