Timeline for How to only publish posts with image in it
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 21, 2012 at 12:49 | comment | added | Demilio | however... i just noticed something. It doesnt show the right ammount of posts pr page. Probably because it counts the total nr of posts pr page, including the ones without pictures. Any simple way to fix this? | |
May 21, 2012 at 12:01 | history | edited | Chip Bennett | CC BY-SA 3.0 |
there was missing a php end-tag
|
S May 21, 2012 at 12:01 | history | suggested | Demilio | CC BY-SA 3.0 |
there was missing a php end-tag
|
May 21, 2012 at 11:55 | comment | added | Demilio | this solved my sissue! Just what i was looking for! | |
May 21, 2012 at 11:55 | review | Suggested edits | |||
S May 21, 2012 at 12:01 | |||||
May 21, 2012 at 11:54 | vote | accept | Demilio | ||
May 20, 2012 at 16:10 | history | edited | Zach Lysobey | CC BY-SA 3.0 |
expanded code example
|
May 20, 2012 at 15:30 | comment | added | Adam | Yup, I interpret his question differently, but in retrospect you are probably right. Maybe, if you'd like, extend your answer to show him how to use the above conditional check with his query. Thus other people who may stumble upon this in the future will gain some additional benefit too. | |
May 20, 2012 at 15:28 | comment | added | Zach Lysobey | Appologies, thought you were OP. From his question, it sounds like he only wants to check if theres an image in the post, not that the post only contains images. | |
May 20, 2012 at 15:28 | comment | added | Adam | Its not my question and it could very well be that I've misinterpreted his question as he does not indicate whether this applies to text, text and image or image only. If its the former, then your answer would be a plausible solution. | |
May 20, 2012 at 15:21 | comment | added | Zach Lysobey | Perhaps you should change the wording of your question to indicate this requirement? I'll give it some thought | |
May 20, 2012 at 15:08 | comment | added | Adam |
This does not check whether the post has any text based content. It only checks for the existence of an image. You would need to extend the regular expression within $searchimages variable to allow for this.
|
|
May 20, 2012 at 15:03 | history | answered | Zach Lysobey | CC BY-SA 3.0 |