Timeline for modify the_content() for page to display attachments with own style
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 21 at 11:15 | comment | added | Tom J Nowell♦ |
some notes, exclude and other not style operators are extremely slow/expensive and very heavy on the server, it's much easier to add if ( $attachment->ID === get_post_thumbnail_id() ) { continue; } and could give a huge performance boost. The DB is optimised to give you what you want, it isn't optimised to exclude/hide what you don't want. Likewise set posts_per_page to a high value you know the server can handle, but never -1 , your page can't display an infinite number of posts. Otherwise your Q appears to boil down to "how do I skip an attachment if it's already in the content?"
|
|
Mar 21 at 11:12 | history | edited | Tom J Nowell♦ | CC BY-SA 4.0 |
added 12 characters in body
|
S Mar 21 at 10:41 | review | First questions | |||
Mar 23 at 14:16 | |||||
S Mar 21 at 10:41 | history | asked | mardon | CC BY-SA 4.0 |