• 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

    (@jcexygy)

    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

    (@aljono)

    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.