from https://williechiu40.wordpress.com/2017/11/28/new-jetpack-breaks-shortlinks-for-custom-post-types/ By default, users with the author user role can delete their own posts, even when these posts are already published. If you run a multi-author blog, then you may want to stop authors from deleting their own posts specially once it’s published. In this article, we will show you how to easily prevent authors from deleting their own posts in WordPress. Why Prevent Authors From Deleting Their Own Posts in WordPressWordPress comes with a powerful user role management system. Each registered user on your WordPress website is assigned a user role, and each user role comes with different permissions. Users with the ‘author‘ role can write posts and publish them on your website. This role is generally used by multi-author WordPress blogs. Authors can also delete their own posts, including those already published. As a website owner, you may want to prevent authors from doing that. The easiest way to do that is by modifying the author user role and changing its permissions in WordPress. Let’s take a look at how to easily prevent authors from deleting their own posts. Method 1: Prevent Authors From Deleting Posts Using PluginThis method is easier and recommended for all users. First thing you need to do is install and activate the Capability Manager Enhanced plugin. For more details, see our step by step guide on how to install a WordPress plugin. Upon activation, you need to visit Users » Capabilities page. Here you can load any WordPress user role and change its capabilities and permissions. You need to start by locating the ‘Select Role to View / Edit’ box in the right column, and then select ‘Author’ user role from the drop down menu. After that you need to click on the ‘Load’ button to load the author user role capabilities. The plugin will now load the ‘Author’ user role capabilities. Under the deletion capabilities section, you need to uncheck the box next to delete and delete published options. After that you can go to the bottom of the page and click on the save changes button to store your settings. Now, users with the author user role will not longer be able to delete any posts on your WordPress site. Giving Back Permissions User role capabilities are defined explicitly. It means that once you remove a capability from a user role, it will not come back unless you explicitly define it again. Even if you uninstalled the plugin, the capability changes you made will not revert automatically. If you want to give back authors permission to delete, then you will have to repeat the process and check the boxes next to the delete and delete published posts options. If you want to uninstall the plugin and revert back to default WordPress capabilities, then first you need to visit Tools » Capability Manager page and click on ‘Reset to WordPress defaults’ link. Method 2: Manually Prevent Authors From Deleting Their Own PostsThis method requires you to add code to your WordPress files. If you haven’t done this before, then take a look at our guide on how to copy and paste code in WordPress. You will need to add the following code to to your theme’s functions.php file or a site-specific plugin. function wpb_change_author_role(){ global $wp_roles; $wp_roles->remove_cap( 'author', 'delete_posts' ); $wp_roles->remove_cap( 'author', 'delete_published_posts' ); } add_action('init', 'wpb_change_author_role'); This code changes the author user role and removes their capability to delete their own posts. If you want to revert back the permissions, then simply removing the code will not make any change. You will need to explicitly redefine the removed capabilities by replacing the first code snippet with the following code: function wpb_change_author_role(){ global $wp_roles; $wp_roles->add_cap( 'author', 'delete_posts' ); $wp_roles->add_cap( 'author', 'delete_published_posts' ); } add_action('init', 'wpb_change_author_role'); We hope this article helped you learn how to prevent authors from deleting their own posts in WordPress. You may also want to see our ultimate step by step WordPress security guide for beginners. 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 Prevent Authors From Deleting Posts in WordPress appeared first on WPBeginner. from http://www.wpbeginner.com/plugins/how-to-prevent-authors-from-deleting-posts-in-wordpress/ The purpose of a content marketing campaign is almost never a boost in sales: People who want to consume and share information rarely intend to buy. Content marketing is mostly about influencing the influencer, i.e. those people who can impact your customers’ buying decisions. Hence the most effective content marketing strategy is the one that involves influencers, especially influencer-driven content. According to the ANA survey from Linqia, 57 per cent of marketers report that influencer-driven content outperforms brand-created content:
But how to engage influencers into creating content for your company blog? One of the most effective ways is to set up a writing contest: Have them contribute content to your blog for a chance to win a prize or a set of prizes. Benefits of holding a content marketing contestThere so many marketing opportunities behind this idea that it will make your head spin:
Furthermore, think about the customers you will be able to engage when announcing the contest in your newsletter and on your social media channels. There are so many reasons to try this tactic that you may be wondering why you haven’t done it before. Well, it’s tough and time-consuming, but the steps below, together with some handy tools, will make it possible. 1. Brainstorm and research topic areasObviously, hosting a content marketing contest starts with what any content marketing tactic should start: Brainstorming and keyword research. There are mainly two approaches you can take here:
When I plan any content marketing campaign, I always start with keyword clustering, which is something I’ve explained how to do in a previous article for SEW. Playing with keyword groups always gives me a nice perspective and helps me brainstorm. Here’s an example from Serpstat breaking down a very cluttered topic into nice categories to pick one to go with: Read more on how keyword clustering works on Serpstat and how to group your keyword lists. 2. Reach out to participantsNow that you know the topics you want to focus your content marketing contest around, it’s time that you reach out to prominent writers and bloggers in your industry who you think will want to participate. If you are focusing on your product-related content, it’s as simple as reaching out to your customers. For general how-to content contest, you’ll need to create a list of influencers who:
I use Buzzsumo to find active content writers in my niche. They have handy filters that allow me to find bloggers who have hosted or participated in similar ventures, or don’t mind contributing to others. 3. Get organized!You’ll be dealing with lots of new contacts: hopefully influencers participating and coming on board to spread the word, press contacts, media partners, sponsors, etc. Unless you get organized, you’ll be lost and miss a lot of opportunities. You can use your current customer management platform to organize all the new contacts and leads you’ll be building throughout the contest. Otherwise, give Hubspot’s CRM a try: it’s free, and it will give you all the required features to record, organize and follow up with all the new contacts you’ll be building along the way. I also use Cyfe to keep everything relating to a current campaign I am running within one dashboard. You can use the dashboard to keep an eye on brand mentions, create quick links to other tools you should be keeping an eye on a daily basis, import your Gmail messages, and so much more. 4. Keep your content quality standards high
All of that should be listed in a formal agreement all the participants should review and sign to avoid any misunderstandings later. Try using KeepSolid Sign app which is currently free to make sure every participant is well-informed. 5. Collect in and present your entriesThere are plenty of ways to easily collect entries for your contest. You can use Google Forms or set up advanced Contact Us Forms that will force entries to comply with your guidelines (e.g. set the required minimum word count, include extra mandatory fields like links to the author’s social media profiles and previous articles). Here are great WordPress plugins for that. There’s also a tool that is specifically designed to collect entries for content marketing contests, called Easy Promos. They have additional features that may make your job easier like integrated voting features, photo and video uploads, etc. With the platform, you can pick a winner via public voting, a jury or by random choice with certificate of validity. When it comes to collecting and displaying entries and participants, you can go as creative as your imagination takes you. For example, Gleam allows you to create and embed blog widgets with the contest leaderboard (which naturally attracts more entries). You can also collect your contest entries and turn them into a beautiful Slideshow using Haikudeck and/or a nice flipbook using Flipsnack. You can embed both to your blog when announcing winners. 6. Scale up your content promotionObviously, you want that content from your contestants to do well on social media because it’s your site that will generate additional traffic and exposure from those shares. I use Drumup for all my social media campaigns, because it makes it so easy to organize content that needs promotion. Use Drumup Content Library feature to keep all the entries in one category to easily go back and see all of them. Furthermore, set up each article to go live throughout your social media channels several times in the future to reach more of your followers: You also want that content to spread beyond your immediate social media circles! To achieve this, you can submit every entry to a tool called ViralContentBee [Disclaimer: This is a project I co-founded]. ViralContentBee allows you to tag each contributor in the “RT” field to encourage your participants to engage with every tweet: I hope these tools will encourage you to give hosting an influencer-driven writing contest a try. Good luck! from https://searchenginewatch.com/2017/11/28/how-to-amplify-your-content-marketing-with-influencer-driven-writing-contests/
from https://williechiu40.wordpress.com/2017/11/28/oop-for-better-conversions-in-wordpress-plugins-igor-benic/
from https://williechiu40.wordpress.com/2017/11/27/using-vs-code-for-wordpress-development/
from https://williechiu40.wordpress.com/2017/11/27/video-backgrounds-suck-ban-them-from-your-website-%e2%80%a2-yoast/
from https://williechiu40.wordpress.com/2017/11/27/interview-with-primoz-cigler-of-proteus-themes/ Recently one of our readers asked how to turn off PHP errors in WordPress? PHP warnings and notices help developers debug issues with their code. However it looks extremely unprofessional when they are visible to all your website visitors. In this article, we will show you how to easily turn off PHP errors in WordPress. Why and When You Should Turn Off PHP Errors in WordPress?PHP errors that you can see on your WordPress site are usually warnings and notices. These are not like internal server error, syntax errors, or fatal errors, which stop your website from loading. Notices and warnings are the kind of errors that do not stop WordPress from loading your website. See how WordPress actually works behind the scenes for more details. The purpose of these errors are to help developers debug issues with their code. Plugin and theme developers need this information to check for compatibility and best practices. However, if you are not developing a theme, plugin, or a custom website, then these errors should be hidden. Because if they appear on the front-end of your website to all your visitors, it looks extremely unprofessional. If you see an error like above on on your site, then you may want to inform the respective theme or plugin developer. They may release a fix that would make the error go away. Meanwhile, you can also turn these errors off. Let’s take a look at how to easily turn off PHP errors, notices, and warnings in WordPress. Turning off PHP Errors in WordPressFor this part, you will need to edit the wp-config.php file. Inside your wp-config.php file, look for the following line: define('WP_DEBUG', true); It is also possible, that this line is already set to false. In that case, you’ll see the following code: define('WP_DEBUG', false); In either case, you need to replace this line with the following code: ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false); Don’t forget to save your changes and upload your wp-config.php file back to the server. You can now visit your website to confirm that the PHP errors, notices, and warnings have disappeared from your website. Turning on PHP Errors in WordPressIf you are working on a website on local server or staging area, then you may want to turn on error reporting. In that case you need to edit your wp-config.php file and replace the code you added earlier with the following code: define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', true); This code will allow WordPress to start displaying PHP errors, warnings, and notices again. We hope this article helped you learn how to turn off php errors in WordPress. You may also want to see our list of the most common WordPress errors and how to fix them. 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 Turn Off PHP Errors in WordPress appeared first on WPBeginner. from http://www.wpbeginner.com/wp-tutorials/how-to-turn-off-php-errors-in-wordpress/
from https://williechiu40.wordpress.com/2017/11/27/gobble-these-deals-on-thanksgiving-black-friday-cyber-monday/ |
AuthorHi, I am Sheila. I am 27 years old living with my family in Cedar Rapids, IA. I am a Social Media Marketer. Currently attached with a marketing firm. My hobbies are swimming and beach volleyball. Archives
April 2019
Categories |