Interface for logged-in users to upload/download files

You can have a look on the following plugin for this purpose: WordPress Download Monitor I have found this plugin very useful for uploading/downloading files. This plugin will store files in the web server. This has also built in Download Page function with built in sorting, pagination, search feature and many more.

How to display tag cloud without links

We can modify the output with the filters wp_tag_cloud or wp_generate_tag_cloud. But we could also use: echo strip_tags( wp_tag_cloud( ‘echo=0&smallest=10&largest=10&number=0&format=list’ ), ‘<ul><li>’ ); where we strip all the HTML tags from the output, except the ul and li tags. Notice that we added the echo=0 parameter as mentioned in the Codex as a way to … Read more

PHP/MySQL issues when running WP on EC2 cloud [closed]

Try logging into the mysql instance from the command line by typing in mysql -u root -p and then entering your mysql root password. If you can connect, even if it rejects your username and password, you know it’s up and running correctly. From that point you can diagnose whether it is username/password issues or … Read more

Individual css class for each tag in wp_tag_cloud

try this code: add_filter ( ‘wp_tag_cloud’, ‘tag_cloud_font_size_class’ ); function tag_cloud_font_size_class( $taglinks ) { $tags = explode(‘</a>’, $taglinks); $regex1 = “#(.*style=”font-size:)(.*)((pt|px|em|pc|%);”.*)#e”; $regex2 = “#(style=”font-size:)(.*)((pt|px|em|pc|%);”)#e”; $regex3 = “#(.*class=”)(.*)(” title.*)#e”; foreach( $tags as $tag ) { $size = preg_replace($regex1, “(”.round($2).”)”, $tag ); //get the rounded font size $tag = preg_replace($regex2, “(”)”, $tag ); //remove the inline font-size style … Read more

display tag slug as class per link in tag cloud

one possible way: add a filter in functions.php of your theme: add_filter ( ‘wp_tag_cloud’, ‘tag_cloud_slug_class’ ); function tag_cloud_slug_class( $taglinks ) { $tags = explode(‘</a>’, $taglinks); $regex = “#(.*tag-link[-])(.*)(‘ title.*)#e”; foreach( $tags as $tag ) { $tagn[] = preg_replace($regex, “(‘$1$2 tag-‘.get_tag($2)->slug.’$3’)”, $tag ); } $taglinks = implode(‘</a>’, $tagn); return $taglinks; }

Change order of WordPress tag cloud

Tags (terms) do not have a menu_order (see the design of the table in the DB). If you want to give terms a ‘menu_order’ you will need to create this yourself. As long as your WP is >= 4.4.0, you can make use of the feature term_meta. This is to terms what post meta is … Read more

Combining tags from post types

As John said in his comment, you have two taxonomies with separate terms. If both posts and portfolios are to share tags, instead of using a new taxonomy just extend post_tags to portfolio custom post type : register_taxonomy_for_object_type( ‘post_tag’, ‘portfolio’ );

Where should I host my images?

I’m probably overcomplicating things. Right now, you are. As I have no traffic as of now I don’t really need to do this, but …. I don’t know what to choose as I don’t understand what these services really do, other than it’s supposed to be “better” to host externally… Then why bother with a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)