Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #725832

    Dear Enfold team

    I just noticed that this warning “suddenly” is shown at the very bottom of all my portfolio items:

    “Warning: Invalid argument supplied for foreach() in /home/u133xgf/www/wp-content/themes/enfold/functions-enfold.php on line 406”

    It only shows on portfolio items, not on pages (I do not use blog posts, so I do not now the status for these).

    The only thing I can think of has caused this is, that I yesterday put in this code found on your forum for hiding post navigation:

    /* disable post navigation – previous and next */
    add_filter(‘avia_post_nav_entries’,’avia_remove_post_nav’, 10, 1);
    function avia_remove_post_nav()
    {
    return false;
    }

    Has the warning to do with this code for disabling post nav? (which does work as intended!)

    And how can I keep disabling post nav but not show the warning?

    Thanks in advance

    PS: Log in credentials supplied in private content and my acceptance of deactivate plugins

    #725886

    Hey Carsten!

    Can you remove the code please and let us know if it is working fine?

    Regards,
    Basilis

    #725919

    Hey Basilis

    Thanks for replying so quickly.

    Yes, if I remove the code then the “warning” disappears again – but then the post nav offcourse is back, and I news theese “previous” and “next” arrows to disappear. Is there a way of doing this without the “warning” coming up?

    Pls. se private content for example

    Thanks in advance

    #726400

    Hi,

    Please try this in Quick CSS instead:

    a.avia-post-nav {
      display:none !important;
    }

    Best regards,
    Rikard

    #726480

    Hi Rikard

    Tacker så mycket. That did the trick :-)

    Best regards

    #726877

    Hi Nonne,

    Det var så lidt :-)

    Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘"Warning: Invalid argument…" – caused by disabling post nav?’ is closed to new replies.