Thursday, May 4, 2023

How to Use WordPress for Document Management or File Management

Do you want to use WordPress to manage your files and documents?

You may have spreadsheets, images, and other documents that you need to share with the rest of your team. By uploading these files to WordPress, you can easily collaborate with other people, or simply keep these documents within easy reach on the WordPress dashboard.

In this article, we’ll show you how to use WordPress as a document management or file management system.

How to use WordPress for document management and file management

Why Use WordPress to Manage Documents and Files?

It’s easy to lose track of documents when you use lots of different tools. For example, you might share drafts using a platform like Google Drive, track the edits with a tool like Asana, and communicate with editors and guest bloggers using Slack.

The problem is that it’s easy to lose track of a project when you’re using so many different tools. By using WordPress to manage your documents, you can keep everything in one place. This will save you time and effort, and make sure you never lose important files.

That said, let’s see how to use WordPress to manage your documents and files easily.

Setting Up Your WordPress Document Management System

The easiest way to set up a document management system in WordPress is by using WP Document Revisions. This plugin allows you work on files with other people, store documents online, and see a complete revision history for each document.

First thing you need to do is install and activate the plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, you’ll see a new ‘Documents’ option in the left-hand menu. To upload a document to WordPress, head over to Documents » All Documents. Then, click the ‘Add Document’ button.

Document library add new document

Next, you need to give the document a title. This should be something that helps you identify the document, especially if you share the WordPress dashboard with other people such as guest bloggers.

With that done, click the ‘Upload New Version’ button.

Upload a file or document to WordPress

This opens the ‘Upload Document’ popup, which works similarly to the standard WordPress media library.

You can either drag and drop your document onto the popup, or click ‘Select File’ and then choose a file from your computer.

Upload new document

WP Document Revisions will now upload the file to WordPress.

With that done, you can set the document’s workflow state. If you share the dashboard with other people, then this lets everyone know that the document is an initial draft, under review, in progress, or in some other state. This can help you avoid misunderstandings and improve the editorial workflow in multi-author WordPress blogs.

Simply open the dropdown under ‘Workflow State’ and then choose an option from the list.

Using WordPress for document management and file management

Next, you may want to add a description, which will help other users understand what the file is about.

To do this, simply type into the text editor. This section includes all the standard text formatting options, so you can add a link and create bullet points and numbered lists, as well as add bold and italic formatting and more.

Adding a description to WordPress documents

You may also want to add a document image, which can help users understand the file or provide extra information, similar to an index or appendix.

The process is similar to adding a featured image to WordPress posts and pages. Simply select ‘Set Document Image’ and then either choose an image from the media library or upload a new file from your computer.

Adding an image file to a document in WordPress

When you upload a file, WP Document Revisions marks you as the document’s owner.

To assign this file to someone else, just open the ‘Owner’ dropdown and choose a new user from the list. This can help keep your documents organized, especially if you’ve added lots of users and authors to your WordPress blog.

Changing a document owner's in the WordPress admin area

By default, WP Document Revisions will publish the file privately, so only logged-in users can see it.

Another option is to publish the document to your WordPress website, so people can access it without logging into the dashboard.

Even if you publish the document, it’s still a good idea to add a password by clicking on the ‘Edit’ link next to ‘Visibility.’

Making files and documents live on a WordPress website

Then, select ‘Password protected’ and type a secure password into the ‘Password’ field.

With that done, click on ‘OK’ to save your changes.

How to password protect a file in WordPress

Don’t want to use a password? Then you can follow the same process described above, but this time select ‘Public.’

No matter how you publish the file, WP Document Revisions will show its URL directly below the title. People can see the file by visiting this URL.

To create a custom permalink instead, click on the ‘Edit’ button.

Changing the URL permalink in WordPress

Then, type in the new URL and click ‘OK.’

When you’re happy with the information you’ve entered, click on the ‘Update’ button to save your settings.

Managing Document Revisions and Workflow States in WordPress

WP Document Revisions also has powerful version control features. This can help you collaborate with other people, by showing a document’s entire history. You can even open previous versions of the file, and restore an earlier version at any point.

Every time you upload or update a document, you can type a note into the Revision Summary.

Revision summary box

These notes will appear in the revision log towards the bottom of the screen, next to the name of the person who made the update.

If the update included a new file upload, then you’ll also see a ‘Revert’ link.

Revision log and restore

Simply click the link to restore this version of the document. Even if you revert to an earlier version of the file, the history will remain intact so you won’t lose any information.

Customizing and Creating Your Own Workflow States

Workflow states make it easy to see whether a document is an initial draft, in progress, or some other state. Similar to how you save blog posts as drafts or published, states can improve the editorial workflow.

WP Document Revisions comes with four default workflow states: final, in progress, initial draft, and under review. You may need to change these default states, or add more states. For example, if you’re creating a client portal then you might make a ‘under client review’ state.

To change the workflow states, go to Documents » Workflow States. If you want to customize an existing state, then just hover over it and click on the ‘Edit’ button.

Customize existing workflow states

This opens an editor where you can change the name, slug, and description of the workflow state. This is similar to how you edit categories and tags in WordPress.

Once you’re done making changes, click the ‘Update’ button.

Edit existing workflow state

You can also add new workflow states.

In Documents » Workflow States, type in a new name, slug, and description. Then, click the ‘Add New Workflow State’ button.

Add new workflow state

Managing User Roles and Document Access in WordPress

WP Document Revisions assigns different document editing capabilities to people, based on their user role. For example, authors can’t edit documents published by other people or read privately-published documents.

The default permissions should be a good fit for most websites. However, if you want to review and change any of these settings, then the easiest way is by using Members. This plugin allows you to customize the permissions for every user role, and even create completely new roles.

The first thing you need to do is install and activate Members. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, go to the Members » Roles page to see all the different user roles on your WordPress website.

Changing who can access and edit documents in WordPress

Here, hover your mouse over the user role that you want to modify.

You can then go ahead and click on ‘Edit’ when it appears, which opens the user role editor.

How to edit user roles in WordPress

The left column shows all the different types of content such as reusable blocks and WooCommerce products.

In the left-hand menu, click on ‘Documents.’

Changing the file and document permissions

You’ll now see all the permissions this user role has, such as the ability to delete another person’s files or edit their own documents.

Simply click on the ‘Grant’ or ‘Deny’ checkbox for each permission.

Granting and denying permissions in WordPress

When you’re happy with the changes you’ve made, click on ‘Update.’

For a more detailed look at the Members plugin, please see our guide on how to add or remove capabilities to user roles in WordPress.

Saving custom user permissions in WordPress

After installing this plugin, you can even control who has access to each document. Simply head over to Documents » All Documents.

Here, hover over any file and click on the ‘Edit’ link when it appears.

Editing a document's settings in WordPress

Now, scroll to the new ‘Content Permissions’ box. Here, you’ll find a list of all the user roles on your WordPress blog or website.

Just check the box next to each role that needs to access this document.

Restricting document access based on user role

In this section, you’ll also see a Paid Memberships tab. This allows you to restrict access to paying members.

For more information, please see our ultimate guide to creating a WordPress membership site.

Paid membership settings

When you’re happy with the changes, click on ‘Update’ to save your settings.

We hope this article helped you learn how to use WordPress for document management or file management. You may also want to see our guide on how to create a free business email address and our expert pick of the best live chat software for small businesses.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Use WordPress for Document Management or File Management first appeared on WPBeginner.


May 04, 2023 at 10:30PM

How to Fix WordPress Redirecting to Old Domain After Migration

Do you want to fix the issue of redirecting to an old domain?

When you migrate a WordPress website to a new domain, there is a possibility that users will be redirected back to the old domain.

In this article, we will show you how to fix WordPress redirecting to an old domain after migration.

How to fix WordPress redirecting to old domain after migration

What Causes Redirection to Old Domain After Migration Issue?

When you’re moving your WordPress website to a new domain, it is important to set up redirection. This way, users automatically land on the new location, and you get to keep your keyword rankings and traffic.

However, redirection to a new domain may not work properly, and your visitors would be redirected back to the old domain.

One of the main causes for this issue is that your site URL and home URL values are different in the WordPress database tables. You need to make sure that both these values lead to your new domain.

Besides that, DNS issues can also cause users to redirect to the old domain after migration. If the DNS server is not responding or DNS records haven’t been updated, then your visitors won’t be able to view your new website URL.

That said, let’s see how you can fix WordPress redirecting to the old domain after migration. We will cover different methods, so you can click the links below to jump ahead to your preferred section.

Method 1: Update the Site Address in WordPress Settings

The easiest way to fix this issue is by ensuring that the WordPress address and site address is the same in your WordPress settings.

If your Site Address (URL) still shows the old domain, then users will be redirected to the previous URL after migration.

To fix this, simply head to Settings » General from your WordPress admin panel. After that, enter your new domain under the ‘Site Address (URL)’ field.

Site address URL

Once you’re done, simply save your changes and visit the new domain to see if the problem is resolved.

If, however, the URL fields are greyed out and won’t let you type a new address, continue reading and use one of the other methods to redirect your domain.

Method 2: Changing Site URL in WordPress Database

Another method of fixing the redirecting to the old domain issue is by updating the site URL in the WordPress database tables.

You can easily access the database using the cPanel provided by the WordPress hosting service. For this tutorial, we will be using Bluehost as an example, but the process is similar for other hosting companies like Hostinger, SiteGround, etc.

First, you’ll need to log in to the hosting service control panel. After that, simply click on the ‘Advanced’ tab from the menu on your left.

Bluehost's PhpMyAdmin tool

Next, you can scroll down to the Databases section and click the ‘phpMyAdmin’ option.

You will need to wait for a few seconds until phpMyAdmin opens.

Once it opens, you will need to go to the wp_options table from the navigational panel on your left.

Do note that each hosting service has a different naming convention for database tables. However, the one you’re looking for will always end in ‘_options.”

For example, in this tutorial, we will click the ‘staging_45f_options’ table in Bluehost’s phpMyAdmin.

Open the options table

Next, you will need to edit the ‘siteurl’ and ‘home’ options.

First, go ahead and click the ‘Edit’ button for ‘siteurl’ option.

Enter siteurl

After that, you will need to enter the new domain name in the option_value field. Once that’s done, simply click the ‘Go’ button.

Now, you can return to the main wp_options page and edit the ‘home’ option.

Enter the home field value

Next, you will need to enter the new domain in the option_value field.

After entering the value, click the ‘Go’ button.

Method 3: Flush DNS Cache on Your PC

If you’re still unable to resolve the issue of the old domain redirecting after migration, then you should check the DNS settings.

At times, it can take up to 12 to 48 hours for the change of domain name to take effect. As a result, internet providers that don’t have updated DNS records will redirect users to the old domain.

You simply flush the DNS cache so that it gets the latest information and the new website URL. This also helps resolve the DNS server not responding issue.

For more details, please see our guide on how to clear your DNS cache on Mac, Windows, and Google Chrome.

Pro Tip: Use SEO Plugin to Perform Full Site Redirect

When you manually perform redirection to a new domain, then there is always a chance of errors. As a result, users would still be redirected to the old domain.

An easier way of setting up redirection is by using an WordPress SEO plugin like All in One SEO (AIOSEO). It offers a powerful redirection manager that you can use to redirect your entire site to a new domain without any issues.

Full site redirect in All in One SEO

This tool was built by our team, and it is what we use when we’re migrating websites to a new domain or merging two sites into one. You can learn more by following our step by step guide on how to properly do a full site redirect in WordPress.

We hope that this article helped you learn how to fix WordPress redirecting to an old domain after migration. You may also want to see our guide on the most common WordPress errors and how to fix them and our expert picks for the must-have WordPress plugins for business sites.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Fix WordPress Redirecting to Old Domain After Migration first appeared on WPBeginner.


May 04, 2023 at 03:48PM

Wednesday, May 3, 2023

How to Add Click to Tweet Boxes in Your WordPress Posts

Do you want to add a ‘click to tweet’ box in your WordPress posts?

These simple boxes allow readers to share quotes from your posts with a single click. This makes them a great way to get more engagement on social media and drive extra traffic to your website.

In this article, we will show you how to add click to tweet boxes in your WordPress posts.

How to add click to tweet boxes in your WordPress posts

Why Add Click to Tweet Boxes in Your WordPress Posts?

A ‘click to tweet’ button makes it easy for readers to share quotes from your posts and pages.

Visitors can simply click a button to create a tweet that contains the quote, plus a link to the page or post where the quote is featured.

An example of a click to tweet box in WordPress

Depending on how the box is set up, the tweet may even tag your Twitter account.

When social media users see lots of people posting your content, they’re more likely to engage with you.

How to add a 'click to tweet' box to a WordPress website

In this way, click to tweet boxes can increase your blog traffic, get you more followers, and create a buzz around your brand on social media.

All of this can translate to more sales on your online store, new subscribers for your email newsletter, and much more.

With that being said, let’s see how you can easily add click to tweet boxes in your WordPress blog posts.

How to Add Click to Tweet Boxes in Your WordPress Posts

The easiest way to create a click to tweet box is by using Better Click To Tweet. This plugin allows you to add a quote box to any page or post using either a shortcode or a block.

The first thing you need to do is install and activate the Better Click To Tweet plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, head over to Settings » Better Click To Tweet to configure the plugin’s settings. In the ‘Your Twitter Handle’ field, type the account you want to tag in tweets that get shared.

Configuring the Better Click to Tweet WordPress plugin

There’s no authentication process, so you can add any Twitter account to the plugin’s settings, including an account that you don’t own.

You can also override this setting for individual click to tweet boxes, so it’s easy to tag lots of different accounts across your WordPress blog.

If you use custom short URLs, then make sure to check the box next to ‘Use short URL.’ This will force the plugin to show the WordPress shortlink instead of the full URL, which is important if you use tools to track link clicks in WordPress. Again, you can override this setting for individual click to tweet boxes.

With that done, click on ‘Save Changes.’

How to Add a Click to Tweet Box Using the WordPress Block

You can add a click to tweet box to any page or post using shortcode or a block. Since it’s the easiest method, let’s start with the block.

Simply open the page or post where you want to create a box and then click on the ‘+’ button.

In the popup that appears, start typing in ‘Better Click to Tweet.’ When the right block shows up, click to add it to the page.

Adding a Better Click to Tweet button to WordPress

You can now type in the quote you want to use.

By default, the plugin shows a ‘Click to Tweet’ prompt, but you can replace this with your own messaging. For example, if you’re running a giveaway or contest in WordPress then you might encourage readers to quote the tweet, in order to enter the competition.

An example of a Twitter giveaway

To do this, simply click to select the block.

Then, type your custom messaging into the ‘Prompt’ field.

Customizing the quote tweet block

By default, the plugin will tag the account you added in its settings, but you can override this and tag a different account instead.

To make this change, simply type a different username into the ‘Twitter Username’ field.

Changing the linked Twitter account

Tagging your Twitter account is a great way to get more followers and engagement. However, if you simply want to get more visitors to your website then you can remove this tag, so the quoted tweet simply contains a link.

To do this, click to disable the ‘Include the username in Tweet?’ toggle.

By default, the plugin includes a link to the page or post where the quote box is featured. If you prefer, then you can use a different link instead. This can be useful if you want to get more visitors to a specific page, such as the landing page for a product or service that’s mentioned in the blog post.

To do this, simply type the URL into the ‘Custom URL’ field.

You can also mark the link as nofollow, which is useful if you’re linking to a third-party website such as a client or affiliate marketing partner.

Adding a custom link to a social media block

Another option is removing the link, so the tweet just has the tagged account. This is a good option if you simply want to get more engagement on Twitter, rather than drive people to your website.

To do this, click to disable the ‘Include URL in Tweet’ toggle.

Removing the URL from a click to tweet social media block

When you’re happy with how the quote box is set up, click on the ‘Publish’ or ‘Update’ button to make it live. Now if you visit your WordPress website, you’ll see the quote box in action.

How to Add a Click to Tweet Box Using a Shortcode

If you want to show the same quote on multiple pages, then adding and configuring each box separately can take a lot of time and effort. Instead, it may be easier to paste the same shortcode into multiple locations.

You can also add a box to your WordPress theme’s sidebar or similar section, using a shortcode. For more information on how to place the shortcode, please see our guide on how to add a shortcode in WordPress.

To start, you may want to use the following shortcode:[bctt tweet="Quotable Tweet"]

This will create a tweet that tags the account linked in the plugin’s settings and includes a URL to the current page or post. Be sure to change the words “quotable tweet” in the shortcode to whatever message you want users to share.

If you don’t want to tag an account, then you can use the following instead:[bctt tweet="Quotable Tweet" via="no"]

Want to include a different URL in the tweet? Here’s the shortcode:[bctt tweet="Quotable Tweet." url="http://example.com"]

To remove the link completely, just set it to url="no.” You can also mark the link as nofollow by adding the following to the shortcode: nofollow="yes.”

Bonus: How to Add a Twitter Feed in WordPress

A click to tweet box is a quick and easy way to get engagement on Twitter. However, there are other ways to promote your social media accounts including adding a feed that shows your recent tweets and updates automatically as you make new posts.

The easiest way to do this is by using Smash Balloon Twitter Feed, which is the best Twitter plugin for WordPress.

A Twitter feed, created using Smash Balloon

This plugin allows you to embed actual tweets in WordPress blog posts, so readers can easily comment, like, and retweet the original post.

You can quote your own tweets, or even tweets from a third party. For example, you might embed posts from an industry influencer, an advertising partner, or a happy customer.

For more information, please see our guide on how to add social media feeds to WordPress.

We hope this tutorial helped you learn how to add click to tweet boxes in your WordPress posts. You may also want to learn how to create a contact form in WordPress, or see our expert picks for the best WordPress social media plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Click to Tweet Boxes in Your WordPress Posts first appeared on WPBeginner.


May 03, 2023 at 10:00PM