custom field as a boolean with a checkbox?

Have you already looked at the output of WP_Query, if you don’t submit the “meta_query” key? Do you get the posts for the event-posttype? If yes, then you could check what the “more fileds”-plugin puts in the “event-archive” custom field. Maybe you have to set the value to integer 1 or just submit a boolean … Read more

custom registration form [duplicate]

you can use Cimy User Extra Fields , its a plugin that lets you add extra user fields to the registration form. or you can create your own custom registration page with your extra fields by following this great article http://www.cozmoslabs.com/2010/05/31/wordpress-user-registration-template-and-custom-user-profile-fields/

Document.body.scrollTop in WordPress

It would seem that something in WordPress causes a virtual revert to a standards that require cross-browser compatibility, making the same code not work inside and outside WordPress. However, with some code to handle browser-differences (and still avoiding using libraries), the following is what viewport.js looks like now: function height() { if( typeof( window.innerWidth ) … Read more

Function to get content by ID

Instead of using get_posts, which you would use if you wanted to retrieve multiple posts in a loop, you should use get_post, which only retrieves one post by an ID. There is also a built-in excerpt so you might want to go with retrieving post_excerpt. function get_the_excerpt_id($post_id) { $find = get_post($post_id); $excerpt = $find->post_excerpt; $excerpt … Read more