Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] wp_list_categories accepts no parameters (http://forum.bytesforall.com/showthread.php?t=23125)

Carqueville Mar 29, 2015 08:42 AM

[SOLVED] wp_list_categories accepts no parameters
 
Hi,



ID=1 is my test-ID for this

HTML Code:

<?php wp_list_categories('show_count=0&use_desc_for_title=0&child_of=1'); ?>
This should only show the children of that category according to http://codex.wordpress.org/Function_...ist_categories, yet what id does when I include it via the Montezuma-Options is it shows the whole tree like this

* Categories
> Testcategory
>>Name 1
>>Name 2

Only the names should show, obviously.

And not only this. Also, none of the other parameters that should be possible seem to work. I am puzzled.

My goal:
I've been looking for a way to include several authors for each post/article if necessary.

Since I was unable to handle the famous Co-Authors-Plugin (the php-code would not work in Montezuma and get partially display the page of a post), I thought I could just include Authors in my categories. I managed to do that with Atahualpa, but with Montezuma, I seem unable to.

What am I doing wrong?

juggledad Mar 29, 2015 09:24 AM

where are you using this?
do an export of yout montezuma settings and attach to a response (MTO->Export/Import)

Carqueville Mar 29, 2015 09:56 AM

1 Attachment(s)
Thank you for your answer. See attachment:

juggledad Mar 29, 2015 10:12 AM

you need to use the array format for the options, so instead of using
HTML Code:

<?php wp_list_categories('show_count=0&use_desc_for_title=0&child_of=1'); ?>
you ned to code it like this
HTML Code:

<?php wp_list_categories(array(
'show_count' =>
0,
'use_desc_for_title' => 0,
'child_of' => 1
));  ?>


Carqueville Mar 29, 2015 10:15 AM

Great, it worked. Thank you.

That is the second time you helped me (my last question being several years old, but nonetheless)!


All times are GMT -6. The time now is 04:12 AM.

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