Skip to main content
13 events
when toggle format what by license comment
Apr 28, 2014 at 1:49 comment added Locke @Milo Thanks dude...is_post_type_archive() also do the work.
Apr 28, 2014 at 1:49 vote accept Locke
Apr 27, 2014 at 16:49 comment added s_ha_dum I can't duplicate your problem. There is an archive at /brand-voice/ where I'd expect it to be.
Apr 27, 2014 at 6:06 answer added Pieter Goosen timeline score: 0
Apr 27, 2014 at 5:13 history edited Pieter Goosen CC BY-SA 3.0
Add code directly to question
Apr 27, 2014 at 4:26 comment added Milo In your post type registration code, what you have set as $slug is not the URL of the archive, the archive URL is $key. and for checking if you're on an a specific post type archive page, you should use is_post_type_archive().
Apr 27, 2014 at 4:19 comment added Locke I'm trying to access via domain.com/custom_post_type_slug , and yeah I have /%postname%/ kind . But do you think my call to the post_type conditional is correct??
Apr 27, 2014 at 4:13 comment added Milo what URL are you trying to access the post type archive from? and do you have pretty permalinks enabled?
Apr 27, 2014 at 4:05 comment added Locke ok .. my custom_post_type looks like: gist.github.com/DreamsEngineering/9fa9dde7cca888286fcf
Apr 27, 2014 at 4:04 comment added Milo what does your post type registration code look like? 404s happen before the template is loaded, so you need to fix the cause of the 404 before you do anything template related.
Apr 27, 2014 at 3:52 comment added Locke Thanks , well , I actually said that I always get a 404 error page.... , I usually do this to keep all my template well organized, so this just work well with categories o single (in_category , is_category, is_single).
Apr 27, 2014 at 3:49 comment added s_ha_dum And what is the result of your effort? You don't actually explain what goes wrong.
Apr 27, 2014 at 3:47 history asked Locke CC BY-SA 3.0