Where do you upload images on a wordpress site?

WordPress images are stored in your wp-content/uploads folder no need for storing in the database, only the img uris get stored there. When you create an new wordpress post or page with your text editor you will notice several icons above it, use the first one to upload images and it will give you the … Read more

Specify what to do for a specific image number of the post

set a counter variable outside the foreach, check its value in each iteration and output corresponding markup, then increment it at the end for the next iteration. <?php $images = get_post_meta($post->ID, ‘rw_postpage_images’); // set a counter $image_counter = 1; foreach ($images as $att) : $src = wp_get_attachment_image_src($att, ‘full’); $src = $src[0]; $image_path = thumbGen($src,80,80,”crop=1&halign=center&valign=center&return=1″); // … Read more

Display X images from a gallery in the sidebar

Sounds like you need a custom query in order to pull X amount of images. You could do the following (untested): <?php function custom_gallery_display( $number_of_images = 4 ) { //make sure you have access to the WPDB object global $wpdb; //pull 4 random attachments $images = $wpdb->get_results(“SELECT ID from wp_posts WHERE post_type=”attachment” ORDER BY RAND() … Read more

WordPress file browser

Read this article: Using the WordPress Uploader in Your Plugin or Theme. I’ve successfully used this method to integrate the WP uploader with my own plugin.

Forcing absolute src links in the RSS feed

Relative URLs are considered bad practice in WP, because of such issues and that they can be much more complex to migrate. Basic approach to fixing this (not counting changing to absolute URLs everywhere) would be to filter the_content, while checking for is_feed(), and adjust links on the fly.

How to access & display images from a post without textual content ( and vice versa) according to best wordpress practices

This is really a CSS/HTML question as WordPress does not control your layout/styles. You can use one loop and fling the data wherever you want basically. For instance you can wrap individual functions in their own markup //loop start <div class=”left”><?php the_title(); ?></div> //float this title left <div class=”right”><?php the_content(); ?></div> //float this content right … Read more