Conversation started Dec 20, 2010 at 10:39.
Dec 20, 2010 10:39
hiii
i need some wp code help
@ntechi Do you have a specific question?
(WP SE question, I mean)
yes
i ll give you the link
1
Q: Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?

ntechi (Moderator's note: The original title was "drop down taxonomy") I want to add a drop-down box filled with my custom taxonomies, so when someone selects any value, it redirects to corresponding page. I tried out this code, which worked <?php wp_dropdown_categories( array(...

it was solved before but i need to add shortcode to it,
but i am not able to
please help me
I think your the_taxonomy_dropdown() function needs to change the way it accepts arguments if you call it via a shortcode
how i am not getting it
If you call [drop tax=location], the_taxonomy_dropdown( $args ) gets the parameter like an array, so $args['tax'] contains your taxonomy
Dec 20, 2010 10:44
so what modification i have to do in my function
What do you get when you add var_dump( $taxonomy ) in your the_taxonomy_dropdown() function?
When you call it via the shortcode?
Examine that, then you'll see what part of it actually contains the taxonomy
what is var_dump($taxonomy)
i dont think i hav included it in my code
wait i ll try
it's a function that will print out the contents of the variable you pass to it
very easy if you want to try things out
i am getting this
string(8) "category"
then the drop-down box
ok, so then your argument gets passed like it should
ignore what I said before then
Dec 20, 2010 10:48
so what i have to do now?
so can i assign shortcode
?
what is your remaining problem? You get the dropdown?
yes i am gettin, but i want short-code
so that in posts i can call drop-down
ah, I thought you were testing it as a shortcode now?
So do you have the add_shortcode() line somewhere?
wait i ll add
Hi, Jan! Thanks for attention to my qustion about pagination. Could we clear this up right now?
Dec 20, 2010 10:52
i used this code add_shortcode('drop','the_dropdown_taxonomy');
the drop-down came, but i am not getting my post contents
@ntechi Does your function use echo to display the data or return?
Because you have to use return in shortcodes
@glazsasha I'll create a separate room for it
@JanFabry ok! thanks!
@ntechi: Can you also come to the other room for your specific question?
It keeps this room clear
which room?
ya i got the room
Jan you there?
@ntechi I'm in the other room too, just go on explaining your problem there
 
Conversation ended Dec 20, 2010 at 11:07.