Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

RFE: callback function passed to bfa_loop for Not Found processing

Old Jul 27, 2014, 07:00 PM
41 posts · Jun 2010
My current project has six custom post types. The default "Not Found" message is good for five of them but the sixth, Job Postings, is different. It would be nice to be able to pass an optional callback function to bfa_loop to process the case where the query returned no results. For example:

<?php bfa_loop( 'postformat-job_posting' ,'no_jobs_found'); ?>
Actually, I don't really care if the 2nd argument were a callback function or the name of a sub-template.

Currently, I don't believe that there is a way to change the message on a per post type basis. The alternative is to code a completely separate loop. My custom post type (jobs) has a lot of custom taxonomies (location, experience, function, ...) so separate loops would mean a lot of extra code to maintain.


bfa_loop, callback, rfe

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Warning: implode() [function.implode]: Invalid arguments passed in /bfa_post daniel3ub Post-Kicker, -Byline & -Footer 3 Aug 14, 2010 07:02 AM
SwitchLang Function Lyryanne Atahualpa 3 Wordpress theme 0 Feb 2, 2010 04:46 AM
"No Posts found" in Admin View and "Not Found" in Page View dextor Atahualpa 3 Wordpress theme 1 Sep 12, 2009 08:09 PM
[SOLVED] &quot;No Posts found&quot; in Admin View and &quot;Not Found&quot; in Page View dextor Plugins & Atahualpa 0 Sep 12, 2009 02:16 AM
[SOLVED] Error: Warning: implode() [function.implode]: Invalid arguments passed in . grasshopper Post-Kicker, -Byline & -Footer 1 Aug 4, 2009 06:02 PM

All times are GMT -6. The time now is 08:39 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.