To insert code use <code>...</code>.
Child theme php warning: 'Undefined variable: type in ... striking/framework/portfolio.php'
  • Hello!
    On activating the child theme from the distribution (no changes) i had the following php warning on pages with portfolio:
    Undefined variable: type in C:\xampp\htdocs\XXX\wp-content\themes\striking\framework\shortcodes\portfolios.php on line 345

    Any ideas?
  • 3 Comments sorted by
  • add:
    shortcode used for portfolio was: [portfolio column="3" nopaging="true" sortable="true" cat="film-animation,installation,theater-3" title="true" titleLinkable="true" desc="false" more="true" moreText="Read More »"]
  • Hi,

    Will the attached file fix the issue?

    You can unzip it to striking\framework\shortcodes folder.


    Regards,
    KaptinLin
    portfolios.zip
    4K
  • The problem fixed itself....
    I had used some existing posts which i converted to "portfolio" post type.
    This way, come custom fields weren't set.
    After updating the posts the php warning vanishing.
    But thank you for your answer!

    Topic solved / closed
This discussion has been closed.
All Discussions