Fakepilot
Member
Posted 1 year ago #
Hi there!
I'm working with the AutoNav plugin and ran into a problem. Do you know what it is?
Keep getting this error:
Warning: Invalid argument supplied for foreach() in /nfs/c01/h12/mnt/4525/domains/fakepilot.com/html/wp-content/plugins/autonav/autonav-wl.php on line 145
You can check the error yourself here:
http://fakepilot.com/portfolio
It is doing what it is supposed to, parsing all the code correctly. So really just need to remove that warning if it doesn't slow everything down or something?
I have added the "Page Excerpts for WordPress Three" plugin. Also changed your fix for showing all siblings (or whole hierarchy). This post
Is there one autonav[...] on that page, or several? And what exactly are they? If you like, email me at bill@saltriversystems.com
Fakepilot
Member
Posted 1 year ago #
Yes, there are several. I can post here:
[autonav display="images,titles,excerpt" orderby="post_date" order="asc" count="3" columns="3" postid="1084"]
Motion graphics, video & design by Fakepilot
Portfolio by Mattias Lindberg
[autonav display="images,titles,excerpt" orderby="post_date" order="desc" count="8" columns="4" postid="1084"]
COMMERCIALS
[autonav display="list" columns="1" postid="1210"]
MUSIC VIDEOS
[autonav display="list" columns="1" postid="1054"]
PRESENTATIONS
[autonav display="list" columns="1" postid="1097"]
WEB ANIMATION
[autonav display="list" columns="1" postid="1070"]
EXPERIMENTAL
[autonav display="list" columns="1" postid="1104"]
It looks like you may be asking for postid=X, where page X has no attached images but its children do... that is why nothing shows for page X. Perhaps you could use the family parameter: display="images,family" -- which includes not just X's attachments but its children's attachments as well? Or ... ?