How to incorporate Co-Authors Plus into your WordPress theme

Co-Authors Plus is a free WordPress plugin to manage multi-author blogs. If you accept guest posts from your readers and give them credit, you can use this free plugin to manage guest authors very easily. You don’t need to create a new user account for each new guest author.

Co-Authors Plus makes it very simple and easy to manage guest authors but this plugin is not for beginner WordPress users. Because you will have to edit your theme to properly display author information on each blog post.

After installing and activating this plugin, go to Go to Users > Guest Authors to add a new guest author. You can add the first name, last name, and all of the other standard information.

You can also add AIM, Yahoo IM, Jabber / Google Talk, but I think these fields should be replaced with Twitter, Facebook, LinkedIn, Google Plus, and other more popular social networks.

How to add/assign a Guest Author

When writing a new post in the Dashboard, you will see a new Author module, You can search for an author, drag and drop to change the position of authors, or remove an author. You can also upload an image for your guest author. If they have a Gravatar account, Co-Author Plus will use the Gravatar image.

Editing your theme to properly display Author bio

After adding new guest authors, you can assign them to any blog post, but to display author info on the front end of your blog, you will have to edit your theme files. It is always recommended to create a child theme when you want to edit your theme files. In my case, I am going to edit biography.php and content-single.php in a child theme based on TwentySixteen.

Open your child theme folder, and create two new files: biography.php and single.php. If you are using Twenty Sixteen as a parent theme, then create a new folder in your child theme and name it template-parts.

Now you need to create two new files in template-parts folder. save these files as

Tahir Taous loves to write about WordPress, Theme Development, Responsive Design and Blogging. He is an expert when it comes to use awesome tools and techniques to create and customize WordPress Themes. Download WordPress Theme Development Toolkit, which reveals best tools for Responsive WordPress theme development.
More articles by Tahir Taous

Picking up from where we left off, we need to start by creating some HTML to display the data we’ve stored in the $results variable. You can always modify this to suite your project. I’ll be using a table structure. <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <link href="styles/theme.css" rel="stylesheet"/> <title>PHP & MySQL</title>\ </head> <body> <div id="wrapper"> <table> <thead> <th>Title</th>...

In the first two parts of this series, we created the data layer that will hold the polling data and established methods for setting the variable values and reading from the database tables. In this part, we will build the methods that will write new polls and answers to the tables. The addPoll method adds a new record to the devdrive_polls table and returns a Boolean value that signals if the record was added successfully. function addPoll($aArgs) { // add a poll record $sql = "LOCK TABLES devdrive_polls...

A SQL injection is a common programming error the consequences of which can be really devastating. Many successful hacking attacks start when a hacker discovers a vulnerability that gives an opportunity to inject SQL code. When an SQL injection occurs, the structure of an SQL query is compromised and as a result you are left at the mercy of the potential hackers. If there is a vulnerability found, hackers can exploit it to gain access not only to your site and database but in extreme cases also to your corporate...

So far we've created some basic PHP pages and added some simple authentication. Today we're going to going to build on that by adding database support. This will allow us to add proper authentication to our application and start saving tasks. I should also note that I am currently writing PHP in-line and not using functions (or object orientated PHP) I will tidy this up in the next tutorial and spend more time explaining it and what it's benefits are. Last week ... Last week we installed XAMPP, so you should...

In our last session, we looked at the process of entering information on ad banners and ad clients, as well as generating ad activity reports. This week, we examine how to retrieve a random banner ad. We will also learn how to delete, activate and deactivate ads and clients. The getRandomAd() function retrieves a random ad by using the PHP rand() function. The function returns the ad’s primary key ID, client ID, title, URL and redirect path. The function also updates the activity table for this banner...

In our last PHP Ad Tracker lesson, we constructed the database tables for our ad banner application. Now we are ready to construct the data object that will hold the variables and functions that will display, add, edit and delete the data in those tables. Once we name all of the variables and functions, we will start applying the code to them. Variables: The data object class will hold two variables: one to hold the banner ad ID number from the ads table, and one to hold the database connection information....

In the previous lesson, we examined the basic functions of our banner ad tracking system, including the retrieval of records for both banner ads and advertisers. In this lesson, we will look at the functions responsible for generating reports and manipulating the data in the ads table and advertiser table. The getClientsList() function retrieves active client records and sorts them alphabetically by client name: function getClientsList() { // get clients from db $sql = "SELECT ad_client_id,...

Introduction ... I’m going to tell you a story, its about love, death and re-birth... Or something In the beginning there was a young html element called <table>. He had one purpose in life, to display data and life was good. But before long though he had been corrupted, his masters used him to define layout and structure. Things he was not originally designed to do, and so began the dark ages of web design. Then one day, there came a young knight called CSS, and with him he brought light to designers...

About

DeveloperDrive.com is a blog about web development from the makers of the popular web design blog WebdesignerDepot.com
Founded in 2011, we focus on the latest trends, tutorials, opinion articles as well as tips and tricks to empower our readers to become better web developers.