Tyler Sticka
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Cannot pick up the archive-postype templateSorry to hear that! Maybe one little argument is off.
One other thing to keep in mind. It’s generally considered poor practice to name custom post types without a theme- or plugin-specific prefix. For example, instead of
testimonial
you’d usebluelime_testimonial
and then use the rewrite argument to specify aslug
oftestimonial
.If you happened to try any plugins or something else that may have used a similar post type, you can run into some nasty conflicts.
Now, I doubt that’s what’s happening here, but it’s worth mentioning.
Best of luck!
Forum: Themes and Templates
In reply to: Cannot pick up the archive-postype templateYeah, your arguments look fine. I would just insert:
flush_rewrite_rules();
After line 62, right after you register your taxonomy. Then, reload your page (so
functions.php
executes) and see if it works.Forum: Themes and Templates
In reply to: Cannot pick up the archive-postype templateSaw your plight on Twitter, thought I might come to the rescue (or at least attempt to).
Here are my two guesses…
Firstly, are you setting
has_archive
in yourregister_post_type
arguments totrue
?Secondly, have you tried calling
flush_rewrite_rules()
after yourregister_post_type
line?If neither of those suggestions are applicable, I think we’ll need to see what your
register_post_type
args look like to provide more assistance.Forum: Fixing WordPress
In reply to: Upload giving up after an amount of time?D’oh! After much frustration and communication with my host, it turns out when setting up my own “php.ini” they misspelled my last name in the directory name; upon swapping the two misplaced consonants, it works like a dream.
I will mark this resolved, and my apologies to any and all who wasted their time with it! I shan’t be so hasty in the future.