2,782 reputation
11041
bio website
location Dallas, TX
age 32
visits member for 4 years, 4 months
seen 7 hours ago

Whats there to know? A simple Geek who loves sci-fi and always up for a good challenge to solve. Hope to ask a lot of questions and hopefully get to answer some as well!


May
20
comment Custom taxonomy page template
endif and endwhile should be reversed. They're in the wrong order in your code. The while is in the if, so is should be endwhile; endif;
May
18
comment update_post_meta based on acf repeater field
Sorry, misread the code.
May
18
comment How to remove an Ajax action
What hook are you using to remove the action? It could be that you're hook isn't loaded when the AJAX is called.
May
17
comment get current post id inside hook
that should work the same way.
May
5
comment Passing PHP Variables to JS using Localize Script
Only thing I can think of is that the post isn't ready yet in that action
May
4
comment Create custom post type just like a page post_type
Sounds like those custome meta boxes are set to just pages. The only way to get them to show up on other post types would be to edit the code that creates them
May
4
comment Passing PHP Variables to JS using Localize Script
I this in the admin or on the front end. Also, this code should be in an action, either admin_init on the admin side or wp_enqueue_scripts if its on the front end. See codex.wordpress.org/Function_Reference/wp_enqueue_script
Feb
17
comment Get closest event where meta_key field is an array
If the timestamps were like 2015-2-15, you could do a LIKE query
Feb
16
comment Custom post type taxonomy template
For your taxonomy, it should be portfolio_category/books
Feb
16
comment Custom post type taxonomy template
Using what url?
Feb
16
comment Custom post type taxonomy template
Whats not working? How are you testing it?
Feb
16
comment Custom post type taxonomy template
Yeah, the first part of my answer : taxonomy-portfolio_category.php
Feb
16
comment How to order a post type with meta_value_num and if meta_value_num does not exist then order by date
Beat by minutes with that answer.
Feb
10
comment Not getting posts of custom post types
Is this part of an archive page for the custom post type?
Feb
8
comment Fetch User Meta Data
You are trying to get users where the meta_value is both a specific number and zero, which isn't possible. Did you mean OR?
Jan
16
comment How to get the page slug of the current archive page for a custom taxonomy
I recommend that you dome some research into template file hierarchy: codex.wordpress.org/… . Although my answer worked, how you are doing your template would be easier if you let WordPress handle the taxonomy stuff and use the main loop.
Jan
16
comment How to get the page slug of the current archive page for a custom taxonomy
See my new answer and use that instead
Jan
16
comment How to get the page slug of the current archive page for a custom taxonomy
You don't need a custom query for that. All you would have to do is create a new template file with the name of taxonomy-event-categories.php and you can use the main loop instead of creating your own. I'd also rename your taxonomy to event_categories since having the dashes in the taxonomy name may cause issues when you do create an archive page
Jan
16
comment How to get the page slug of the current archive page for a custom taxonomy
Is there any reason you are creating a custom query?
Jan
16
comment How to get the page slug of the current archive page for a custom taxonomy
What do you mean by the page slug? If the page is for a category, it'd have multiple posts on there. Are you looking for the taxonomy term slug?