Ask your WordPress questions! Pay money and get answers fast! (more info)

Problem with code for admin menu to filter custom posts WordPress

  • SOLVED

I have some custom code in functions.php that was provided by @Gabriel_Reguly here on WPQuestions (http://wpquestions.com/question/showChrono/id/3958).

http://pastebin.com/8ecQ1JLF

It creates a menu at the top of the admin list for a custom post type (contestentry) that filters posts by author but displays their value for a specific user_meta (acs_company_name) in the menu. The code is now causing edit.php?post_type=contestentry to generate a 500 error and is preventing Bulk and Quick Edit from working. Clicking quick edit results in a hash on the end of the URL but nothing else happens. Commenting out this code makes quick and bulk edit work again.

Gabriel, or someone else, could anyone help me revise this to eliminate the error and re-enable my Quick and Bulk edit capability?

Thanks!!

Answers (1)

2013-05-02

Dbranes answers:

Hi, what happens if you move the <strong>cmp()</strong> function outside of the <strong>wp_dropdown_users_modified()</strong> function ?


Adam Bundy comments:

Genius @Dbranes! Works like a charm. Thank you!