441 reputation
29
bio website
location
age
visits member for 1 year, 8 months
seen Nov 18 '13 at 9:08

Aug
6
awarded  Yearling
Jun
12
awarded  Necromancer
Apr
5
awarded  Student
Apr
5
asked Alternative to the filter comment_reply_link
Nov
12
answered How to get a value from PHP in Jquery through Ajax
Sep
21
awarded  Custodian
Aug
24
comment Divs appearing everywhere in post content
It's the priority of the function. It comes in to play when different functions runs in the same hook. 99 probably isn't necessary here, you could experiment with it if you think it would be beneficial.
Aug
23
comment Divs appearing everywhere in post content
functions.php in your theme folder.
Aug
23
comment Divs appearing everywhere in post content
Check out my edit, that should work for removing any divs before the post get saved to the database.
Aug
23
revised Divs appearing everywhere in post content
added 442 characters in body
Aug
22
answered How to include a plugin's php file to another plugin functions file
Aug
22
answered Divs appearing everywhere in post content
Aug
18
comment How to wrap an element around an iframe or embed in content automatically?
You could use preg_match instead of preg_match_all to only get one result. Or rewrite the foreach to break after the first iteration. Or not use a foreach and just get the first match ($match = $matches[0]). Just make sure you check if you've gotten any matches first.
Aug
17
awarded  Commentator
Aug
17
comment exclude category in loop.php
Add the author parameter to your query, like this: query_posts('cat=-1&author=3'), where 3 is the author id.
Aug
16
comment exclude category in loop.php
Yes, that is correct. Do you want to exclude some authors as well? Or show posts from only one author?
Aug
16
answered exclude category in loop.php
Aug
16
reviewed Approve suggested edit on How to add a media with PHP
Aug
16
comment How to add a media with PHP
Try including /wp-admin/includes/media.php, /wp-admin/includes/file.php and /wp-admin/includes/image.php and see if that works.
Aug
16
answered How to add a media with PHP