Portfolio Post Type
Throwing a Warning (3 posts)

  1. John Morris
    Posted 1 year ago #

    With the latest version of this plugin and WordPress as of today, this plugin throws a PHP warning:

    Warning: join(): Invalid arguments passed in /path/to/wordpress/root/wp-includes/post-template.php on line 394

    Tracing the error down a bit, it appears this plugin is causing a problem with the get_body_class() function in post-template.php. Note that this is only appearing on pages, not posts.


  2. Ulrich
    Posted 1 year ago #

    I have this issue too. I have opened a issue on GitHub.

  3. Gary Jones
    Posted 1 year ago #

    As per the GH issue, the quick fix is to edit class-portfolio-post-type-registration.php and amend the final method so that it returns $classes, instead of nothing.

    if ( ! is_single() ) {
        return $classes;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Portfolio Post Type
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic