Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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 10:21 PM.

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