Posts in Portfolio category are displaying unwanted strings of text

Viewing 3 posts - 1 through 3 (of 3 total)
  • #19299
    SpencerDub
    Participant

    Hey there. I’ve encountered this bug lately, and I’d greatly appreciate some help fixing it.

    Summary:
    Posts in the category designated as Portfolio Category (via Dashboard->Appearance->Theme Options->General) display the string “ninja_forms_form: 0” in their post headers and in search results/category pages.

    Relevant system information:

    • WordPress 4.0
    • Pinboard 1.1.8
    • Ninja Forms 2.8.5

    Steps to reproduce:

    1. Log into WordPress.
    2. Make sure Pinboard is the active theme and that Ninja Forms is enabled.
    3. Under Appearance->Theme Options->General, select a portfolio category.
    4. Create a new post.
    5. Add a title and content to the post.
    6. Categorize the post under the category designated as portfolio category in step 3 above.
    7. Publish the post.
    8. View the newly published post, or check it out on the blog homepage.

    Expected results:
    The post displays, without the text “ninja_forms_form: 0” in the header.

    Actual results:
    The post displays, with the text “ninja_forms_form: 0” in the header.

    Other information:
    You can see this on my site, as well as in these sample posts and in my “Creative Endeavors” category.

    I’m using a child theme of Pinboard, but with very minor modifications. I’ve verified that the same behavior occurs when using “vanilla” Pinboard.

    This bug is driving me batty, so any help would be greatly appreciated. Thanks!

    #19304
    Daniel Tara
    Keymaster

    Copy the function pinboard_entry_meta() to your child theme’s functions.php and replace this line:

    <?php if( ( '_' != $meta[0] ) && ( 'enclosure' != $meta ) ) : ?>

    with this:

    <?php if( ( '_' != $meta[0] ) && ( 'enclosure' != $meta ) && ( 'ninja_forms_form' != $meta ) ) : ?>
    #19305
    SpencerDub
    Participant

    Daniel–that worked! (Well, almost–I first removed the duplicate question mark in your <?php tag.)

    Thanks a bunch for your quick response. πŸ™‚

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.