Posts by ThemeChills

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Try this https://wordpress.org/plugins/custom-taxonomy-order-ne/ :)

Thanks, though was hoping I wouldn’t have to use a plugin for this feature or create my own.

Leo

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Hi all,

I have a custom post type called Events.

Within these I have also created custom taxonomies labeled General, Venue, Parties and Activities.

My issue is that I need to have the ability to order these on the admin end, though as it stands they display in the order they were entered into the system.

Any ideas how to go about adding the ability to order custom taxonomies?

Appreciate your help.

Thanks,

Leo

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Sorted it out, thanks :)

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Hi all,

This is driving me up the wall. I’ve been looking around for various solutions but just can’t get it right.

I created a custom post type called Events.

Within this CPT there is a Meta Box which houses the event location (e.g. The Waterfront Bar and Lounge)

I created a WP_Query loop on the homepage and need it to output the location value. How would one go about doing this?


 $args = array(
      'post_status'      => 'publish',
      'post_type'           => 'event',
      'event-category'     => $term->slug,
 );

 $the_events_query = new WP_Query( $args );

Outputs:

Event Title
Event Category

Missing the location, is this something I need to modify with WP_Query?

Appreciate your help, thanks.

Leo

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

This might help:
$event_terms = get_the_terms( $event_post_id, 'the event taxonomy name' );
$event_tax_names = wp_list_pluck( $event_terms , 'name );
echo implode( ', ', $event_tax_names );

Thanks @nagaemas! Appreciate your help.

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Hi everyone,

I created a custom post type called Events. This CPT has a custom taxonomy associated to which I need to echo out in the following format.

Event Taxonomy Name
Event Title

I am having difficulties pulling out the value for the taxonomy name.

Any ideas?

Thanks,

Leo

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Congrats Rich and team!

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

Noted. Thanks everyone.

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

I just think whether users want to use that script in another page ;)

Nope. I don’t wish to have this included on any other page aside from that which includes the homepage page template. The widget should only ever be present there.

Thanks for your input though, appreciate it.

Leo

145 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Located in Australia
+3 more
ThemeChills says

if ( is_page_template( 'homepage.php' ) ) {
is a not good condition in this case
You could use
wp_register_script( 'my-script', get_stylesheet_directory_uri() . '/js/my-script.js' );
Then add
wp_enqueue_script( 'my-script')
To your widget display code :)

Why wouldn’t this be a good condition? I only want it to be applied if the homepage page template has been associated to the page…

Thanks,

Leo

by
by
by
by
by
by