15,376 reputation
31028
bio website xlino.com
location Reykjavik, Iceland
age
visits member for 1 year, 9 months
seen 2 hours ago

Developer from Iceland

Just another Earthling cruising the Milky Way galaxy

----- ]=|>


14h
revised Getting the IDs of a custom post type
If we want to echo the id, we just use the_ID().
14h
comment Getting the IDs of a custom post type
Notice the difference between the_* vs get_the_* functions. In most cases it's like echo vs return.
14h
comment Getting the IDs of a custom post type
You don't need echo with the_title() and you can also use the_ID() instead of echo get_the_id().
23h
comment Customizer: Unique identifier that distinguishes which image upload control is uploading an image
Glad to hear it worked out for you.
1d
comment Customizer: Unique identifier that distinguishes which image upload control is uploading an image
I get an extra [context] => custom-background in the post_data part when I upload a background image with the Theme Customizer on the Twenty Twelve theme. Notice that wp_handle_upload is a filter not an action.
2d
comment How to validate XML-RPC post creation and cancel when needed?
Hi, I've now tested this idea and it works for my setup, both trashing and updating. I see that you used metaWeblog.newPost but I used wp.newPost. I also had a typo where I wrote $post_type instead of $post_data, sorry about that ;-)
2d
revised How to validate XML-RPC post creation and cancel when needed?
added 276 characters in body
2d
reviewed Approve suggested edit on Is there any way to add absolute path for add_menu_page function?
2d
revised Embed .mov file via 'Add Media' not working
added 180 characters in body
2d
answered Embed .mov file via 'Add Media' not working
Oct
16
comment WordPress Liveblog plugin: How to associate uploaded images with comments?
@henrywright I think you could inject HTML info for each attachment into the relevant comment box. For example the attached image url is only added to the current comment box and not the other ones. But you should hear from the developers if they plan to support this feature.
Oct
16
comment WordPress Liveblog plugin: How to associate uploaded images with comments?
The third idea was to have for example a <ul> list of attachments in the insert/edit view, that's updated when you upload an image. When you insert/edit the comment, you would process this attachment list into the comment meta data. When you delete a comment you could then fetch the info from the comment metadata. Hopefully ... ;-)
Oct
16
comment WordPress Liveblog plugin: How to associate uploaded images with comments?
To connect comments and attachments there's always the unstable hack to replace entry_text += url + "\n"; with entry_text += url + "?attachment_id=" + upload.id + "\n"; in your own enqueued version of plupload.js. Then you have the attachments id's in the comment text. But maybe you could instead use it to update an hidden input field in the form or as extra attachments (list) information in HTML of the edit mode for each comment item? Then use that when you update the comment to add to the comment meta? No idea if this makes sense. Just thinking out loud ;-)
Oct
16
reviewed Close Front End Plugin for User Management
Oct
16
reviewed Close Too many redirects when using wp super cache
Oct
16
reviewed Close Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
Oct
16
reviewed Close 3 column responsive layout issues
Oct
16
reviewed Close Creating a search form for custom fields
Oct
16
reviewed Close query wordpress page template
Oct
16
reviewed Close Can't Login to WordPress after installing and activating WP Maintenance Mode Plugin