Title: Custom Post Type php error &#8211; custom fields problem?
Last modified: April 17, 2017

---

# Custom Post Type php error – custom fields problem?

 *  [cj.media](https://wordpress.org/support/users/cjmedia-1/)
 * (@cjmedia-1)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/custom-post-type-php-error-custom-fields-problem/)
 * Hey there, great plugin by the way!
 * Here’s an error I’m getting while attempting to reach a post of a post type I
   created via CPT-onomies:
 * Warning: implode() expects at most 2 parameters, 5 given in […]public_html/wp-
   content/plugins/cpt-onomies/cpt-onomy.php on line 273
 * This error appears twice on the left half of my browser window, while my 404 
   page is on the right half.
 * Could it be because I have added extra metadata to the custom post type by adding
   meta boxes through functions.php?
 * I have also added custom fields to the custom post type via ACF Pro. Could it
   be that?
 * Any ideas on how to resolve?
 * I am using the latest version of WordPress and the Plugin, as well as X Theme
   by Themeco.
 * Thank you so much! I owe you a coffee!
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [jcexygy](https://wordpress.org/support/users/jcexygy/)
 * (@jcexygy)
 * [9 years ago](https://wordpress.org/support/topic/custom-post-type-php-error-custom-fields-problem/#post-9141267)
 * Looks like the parentheses are misplaced in lines 273 and 284. The last paren
   should be moved right after $eligible_post_types, like this:
 * `implode( "','", $eligible_post_types), CPT_ONOMIES_POSTMETA_KEY, $taxonomy, 
   $value );`
 *  [aljono](https://wordpress.org/support/users/aljono/)
 * (@aljono)
 * [9 years ago](https://wordpress.org/support/topic/custom-post-type-php-error-custom-fields-problem/#post-9173127)
 * Thanks (@jcexygy). That fixed it for me, though I don’t know what error line 
   284 was causing.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Post Type php error – custom fields problem?’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cpt-onomies_f2f2f2.svg)
 * [CPT-onomies: Using Custom Post Types as Taxonomies](https://wordpress.org/plugins/cpt-onomies/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cpt-onomies/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cpt-onomies/)
 * [Active Topics](https://wordpress.org/support/plugin/cpt-onomies/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cpt-onomies/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cpt-onomies/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [aljono](https://wordpress.org/support/users/aljono/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/custom-post-type-php-error-custom-fields-problem/#post-9173127)
 * Status: not resolved