grab or load text on demand

You should really take a look at the AJAX in Plugins article. It gives examples of how to setup AJAX the proper way in WordPress. Here’s the basic workflow of using AJAX in WordPress: Create an enqueue your custom JavaScript file that uses jQuery.post or jQuery.get or jQuery.ajax Create a callback for the wp_ajax action … Read more

Get array of posts based on custom field values

Look at the meta_query argument, and the “IN” option for the “Compare” operator. Your query would look something like: $args = array( ‘product’ => $product, ‘meta_query’ => array( array( ‘key’ => ‘primary_link’, ‘value’ => array( ‘home’, ‘obj_handling’, ‘standalone_doc’, ‘advantages’, ‘weaknesses’, ‘top_comments’ ), ‘compare’ => ‘IN’ ) ) );

How to display data from custom fields I created?

I think you want to look into using get_post_meta and then display it with that. Here it is on the Codex: http://codex.wordpress.org/Function_Reference/get_post_meta You can look at this example: <?php echo get_post_meta($post->ID, $prefix.’where’, true); ?> That should get you what you need if I understand the question correctly.

Stripping and/or altering the content of a custom field (video URL)

Whipped up a nifty little parsing function for you: function wpse44048_parse_video_link( $link ) { $url=”some url”; // pass this in $parsed_url = parse_url( $url ); $host = $parsed_url[‘host’]; // check that the service exists, otherwise return false if( strpos( $host, ‘youtube.com’ ) !== false && strpos( $host, ‘youtu.be’ ) !== false && strpos( $host, ‘vimeo.com’ … Read more