This topic contains 10 reply and 2 voices, and was last updated by towhid 4 years, 9 months ago
Viewing 10 Posts - 1 through 10 (of 10 total)
Author Posts
January 20, 2015 at 9:54 pm 34644
towhid Hi, I have used the hook option to create a dropdown of selectable taxonomies using wp_dropdown_categories( $args ). I'm wondering if you could off me advice on how to save? I see you use meta in all of your examples for custom fields but not anything relating to taxonomies so I'm wondering how you would go about this? Thanks.
January 21, 2015 at 5:28 pm 34745
Jordan Jordan

Hi,

I’ve changed the select menu to list like this:

function render_visibility( $form_id, $post_id, $form_settings ) {

	$taxonomies = array(
	    'type'
	);

	$args = array(
	    'orderby'           => 'name', 
	    'order'             => 'ASC',
	    'hide_empty'        => false,
	    'fields'            => 'all',
	    'hierarchical'      => true, 
	    'child_of'          => 1, 
	    'get'               => 'all',
	    'pad_counts'        => false,
	); 

	$terms = get_terms($taxonomies, $args);

	echo '<select>';
	foreach ( $terms as $term ) {
		echo '<option value=' . $term->term_id . '>' . $term->name . '</option>';
	}
	echo '</select>';
}

If someone could advise on how to make the values of the taxonomy dd to the post that would be great.

Thanks.

January 21, 2015 at 6:29 pm 34752
towhid towhid

Hello Jordan,

Firstly, I will try this code for me and let you know. Hope I will be back to you with a right solutions. Please allow me some time.

Thank You 🙂

January 22, 2015 at 3:52 pm 34823
towhid towhid

Hello Jordan,

The code you provide to me should work. Please have a look this link – http://docs.wedevs.com/using-action-hook-field/ for get instruction of Action Hook for WP User Frontend.

Thank You 🙂

January 22, 2015 at 9:01 pm 34844
Jordan Jordan

hi, thanks for the reply.

I’ve looked at that and I don’t see how I can get it working. Would it be possible to give me a hint or even tell me how I would be able to do it?

Thank you.

January 25, 2015 at 10:40 am 34954
towhid towhid

Hello Jordan,

Can you please read this documentation – http://docs.wedevs.com/using-action-hook-field/.

Thank You 🙂

January 25, 2015 at 11:45 am 34966
Jordan Jordan

Hi,

I did read it but it’s quite vague when you are trying to do what I need to get done. It doesn’t go into detail on how to add meta to taxonomies. The meta tag there is attached to a custom field but if using a taxonomy where can you place the meta? What does it bind to? What other options are there?

You gave me that link before and I told you that I had read it and asked you for help and you just sent it again. That is not very good support. I’ve obviously wasted my money here. Do you offer refunds?

Thank you.

January 25, 2015 at 11:54 am 34967
towhid towhid

Hello Jordan,

Sorry for the inconvenience. The link I provide was sent by mistake. I am trying to get a way to help you. Action Hook is little bit complicated for me because I am not a coder and I am good at code. I have asked my developer team they told me you are doing the right way. I am again asking sorry for my inconvenience.

Hope you understand.

Thank You 🙂

January 25, 2015 at 3:05 pm 34980
towhid towhid

Hello Jordan,

I have send you the code you demand. Please the following link – https://gist.github.com/tareq1988/809ed96eaaf0ce5480e0. Hope it will solve your problem.

Waiting for your answer.

Thank You 🙂

January 26, 2015 at 11:04 pm 35067
Jordan Jordan

Hi,

Thanks for the reply. The link you sent links to one of the comments here.

January 26, 2015 at 11:14 pm 35068
towhid towhid

Hello Jordon,

I have edited my post. Can you check it again please.

Thank You 🙂

Viewing 10 Posts - 1 through 10 (of 10 total)