I’m having trouble removing the featured image from gallery.
I removed all kinds of stuff from those 2 files, but seems like I need to add something, not take away.
Here are the pastebin’s of 2 files:
I’m having trouble removing the featured image from gallery.
I removed all kinds of stuff from those 2 files, but seems like I need to add something, not take away.
Here are the pastebin’s of 2 files:
Comments are closed.
Assuming that you are using the standard functionality of the gallery:
You can extract the id of the images without having to do a query for attachments of that post
with:
Then make an array of these values:
Eventually check if the id of the featured image exists and get its position( i think that it doesn’t exists till you don’t place it inside the gallery ):
unset that value:
now you have all the attachments ids, less the one of featured image stored in $ids array.
UPDATE