How to add custom fields to the all users page

For the first part of your question, you can add new columns to the users table. Its in two steps: first you need to register the columns, then output information for each row. To add new columns, you hook into the manage_users_columns filter: function yourdomain_manage_users_columns( $columns ) { // $columns is a key/value array of … Read more

Insert & order custom post types in/as submenu

I found the answer. To make it short: SOLUTION 1 If you want to simply add a custom post type to a menu item, go with solution number one (which involves creating a menu page with add_menu_pageand setting ‘show_in_menu=>’ to your menu page slug). It works, but if you click on your newly created menu … Read more

Watermark images only for some users

I figured out a sort of working solution, by using the plugin Image Watermark by dfactory. The plugin has an option to back up all uploads, and by checking that in settings it uploads all your photos twice, with a backup in /wp-content/uploads/iw-backup/. What I did was enabling watermarking for all versions of the uploaded … Read more

how to change template?

you could use this snippet, and modify the output string accordingly. $categories = get_the_category(); $separator=” “; $output=””; if ( ! empty( $categories ) ) { foreach( $categories as $category ) { $output .= ‘<a href=”‘ . esc_url( get_category_link( $category->term_id ) ) . ‘” alt=”‘ . esc_attr( sprintf( __( ‘View all posts in %s’, ‘textdomain’ ), … Read more

Unable to load CSS file (HTTP 403)

The entire wp-content folder seems to be in possession of www-data and I have at some time applied chmod -R 777 to the whole folder (No need to tell me that this is not secure). Seems to be — means you will need to check if this is really the case. It may be not … Read more

Transient loop issue

The reason it’s only storing the first post data is because you’re using the same transient name for each post. If you want to store multiple movie transients, you need unique names for each movie. Also, the way you’re getting the transient defeats the purpose of using transients. You want to first try to get … Read more