How to read individual user’s directory and display content to that specific user?

First an observation, using $upload_dir.’/USER_PHOTOS’.$user->user_login may lead to a mess of folders in wp-content/. I suggest wp-content/user-photos/user-login/. And the following example considers it this way. In your case, you already have the menu item, for completeness this is the submenu used for development: add_action( ‘admin_menu’, ‘wpse_75873_folder_menu’ ); function wpse_75873_folder_menu() { add_media_page( ‘User Photos Media’, ‘User … Read more

Pull out Advanced Custom Fields in Related post plugin

According to advenced custom fields you get the value with get_field http://www.advancedcustomfields.com/docs/functions/get_field/ Just change “text_field” to your field-key. <?php $related = MRP_get_related_posts( $post->ID, true, false, ‘quote_list’ ); if( !empty( $related ) ) { foreach( $related as $key => $value ) { // Get post $related = get_post( $value ); // Get the field “text_field” on … Read more

custom changes removed after plugin update

If it’s just a CSS change, load your own CSS stylesheet to override their CSS. If it’s the HTML of the plugin, then you will need to look at filter hooks to see what you can change. Some plugins are developer friendly and supply some filter hooks allowing you to change various things the plugin … Read more

Translating long texts with html formatting

Most translation tools are really hard to use when you try to handle a long text, so the translators have to use a HTML editor anyway. Use separate files, but use the language prefix as directory name: en main.html help-main-options.html help-special-options.html de main.html help-main-options.html help-special-options.html That’s easier to handle for translators and for you too. … Read more