Discussion:
filtering archive headings
Chris McCoy
2013-09-20 16:56:29 UTC
Permalink
does a filter exist that I can hook into before the while loop is ran, so
after the if found posts, i saw a post somewhere the filter, but i didnt
bookmark it.

curious if i can hook into a function to display it via functions.php
instead of the category.php, archive.php etc
Christian Chung
2013-09-20 18:09:09 UTC
Permalink
There's the loop_start action, which runs before the first post of the
loop. Is that what you're looking for?
Post by Chris McCoy
does a filter exist that I can hook into before the while loop is ran, so
after the if found posts, i saw a post somewhere the filter, but i didnt
bookmark it.
curious if i can hook into a function to display it via functions.php
instead of the category.php, archive.php etc
_______________________________________________
wp-hackers mailing list
http://lists.automattic.com/mailman/listinfo/wp-hackers
J.D. Grimes
2013-09-20 18:42:15 UTC
Permalink
Post by Chris McCoy
does a filter exist that I can hook into before the while loop is ran, so
after the if found posts, i saw a post somewhere the filter, but i didnt
bookmark it.
curious if i can hook into a function to display it via functions.php
instead of the category.php, archive.php etc
It sounds like you are trying to override the template being used. You might want to consider creating your own template and then hooking into 'template_include' to conditionally override the default templates. See http://stackoverflow.com/questions/13997743/make-plugin-override-template
Continue reading on narkive:
Loading...