Get uploaded image url

wp_upload_dir() is perfect. It is the only place where you can expect write permissions. Store the attachment ID, not a path. Then you get the image with: wp_get_attachment_url( $attach_id ) Sometimes a user may have deleted the image per media library. To avoid problems with missing files check the return value from wp_get_attachment_url() first. Excerpt … Read more

How would one split content of a post into pages?

You don’t need a plugin for that, it is built-in. Just insert <!–nextpage–> where you need the break, and a properly coded theme will create pagination links. To create page links in a theme use wp_link_pages() Screen shot back-end: Screen shot front-end:

I need to add a custom “cover” to every new post — plugin or custom setup?

Another solution, that doesn’t invoke page attributes: Explanation: To-Do List Go and download the RW_Meta_Box Library. I’m one of the authors/contributers. The Plugins Here you can see two small plugins (which I wrote especially for your question). Input The first one is a dependency of the RW Meta Box library. You just change what you … Read more

Short code for Venues

There aren’t currently any shortcodes for venue information (address, postcode, other meta etc). However, you can copy the single-event.php template (find it in the templates directory of the plug-in) into your theme and edit it there to include venue information via provided template functions: Available functions When used inside the loop, you don’t need to … Read more