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


  #1  
Old Jul 27, 2014, 08:00 PM
marklevine
 
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:

Code:
<?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.

Bookmarks

Tags
bfa_loop, callback, rfe



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 08:02 AM
SwitchLang Function Lyryanne Atahualpa 3 Wordpress theme 0 Feb 2, 2010 05:46 AM
"No Posts found" in Admin View and "Not Found" in Page View dextor Atahualpa 3 Wordpress theme 1 Sep 12, 2009 09: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 03:16 AM
[SOLVED] Error: Warning: implode() [function.implode]: Invalid arguments passed in . grasshopper Post-Kicker, -Byline & -Footer 1 Aug 4, 2009 07:02 PM


All times are GMT -6. The time now is 11:08 PM.


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