Thursday, 1 December 2016

Local by Flywheel


Here are a few (okay, many) of the reasons why Local is the best solution for local WordPress development! Isolated sites powered by Docker
Hot-swap between nginx or� Apache 2.4
Hot-swap between PHP versions
Change site URL by simply typing� in the new domain. Database will be safely updated
All files, databases, configs, and Local settings will be cloned
Site URL is automatically and safely changed
Available versions: 5.2.4, 5.2.17, �5.3.29, 5.6.20, 7.0.3, and more� coming soon
Xdebug included: One-click integration of Xdebug + PHPStorm (Included �Add-on)
Opcache included
Tunnel powered by ngrok
View your site on mobile devices, tablets, � and other computers around the world as � long as you have internet access
Test Stripe WebHooks, PayPal IPN, and �REST APIs
Support for both subdomain and �subdirectory installations
One-click to sync sub-domains to hosts file
Save any site as a blueprint to re-use later
All files, databases, config files, and Local settings will be restored
Export includes site files, databases, config� files, log files, and Local settings
Importing sites will restore all files, databases,� and configs automatically
Exclude files from your exports such as� archives,
Source: https://managewp.org/articles/13936/local-by-flywheel




source https://williechiu40.wordpress.com/2016/12/01/local-by-flywheel/

Flywheel Acquires WordPress Local Development Tool Pressmatic


Flywheel has acquired Pressmatic, a local WordPress development application for OS X. The application was created by Clay Griffiths, who will be joining Flywheel to support the product as part of the acquisition. Pressmatic launched in July 2016 with a $129 price tag but Flywheel is opening it up for free for all users. The company is rebranding the product as “Local by Flywheel” and plans to create a Windows application, add off-site backups for local sites, and sell premium support.
“From the start, the application encompassed so many of Flywheel’s core values: speed, simplicity, and allowing designers and developers the freedom to do what they love,” Flywheel CEO and co-founder Dusty Davidson said. “It’s a perfect fit.”
Griffiths told the Tavern that he is excited for the opportunities that Flywheel can provide for Local going forward. “I originally built Pressmatic because I saw the gap that existed for a truly great local WordPress development experience, and now with the resources and team at Flywheel we’re set to really build something great,” Griffiths said. “I certainly could have continued to go at it
Source: https://managewp.org/articles/13935/flywheel-acquires-wordpress-local-development-tool-pressmatic




source https://williechiu40.wordpress.com/2016/12/01/flywheel-acquires-wordpress-local-development-tool-pressmatic/

WP_Date_Query Entrails – GenerateWP


WordPress uses WP_Date_Query class for generating SQL WHERE clauses to filter queries by date. We worked very hard to build an easy-to-use tool to help developers generate multiple date queries. Introducing our new WP_Date_Query Generator. Filtering Posts by Date
Some WordPress queries such as WP_Query had an historical date filtering support. WordPress 3.7 standardized the date filtering mechanism using a helper class to be used in other WordPress queries.
The new WP_Date_Query class accepts time-related parameters (year, month, day, week, dayofweek, dayofweek_iso, hour, minute, second), multiple arrays with compare operators, and multiple arrays with other nested date queries. You can create simple date-based filters and very complex filters, this class provides solutions for almost every scenario.
There are 3 main ways to use the date query: (1) Create an array of simple date parameters. (2) Use a range of dates with before/after parameters. (3) Use relative date ranges with textual descriptions. This may sound complicated but its not and actually very easy to use once you get the hang of it.
The Date Query Generator
We spent a lot of time to create an easy-to-use interface for our
Source: https://managewp.org/articles/13934/wp-date-query-entrails-generatewp




source https://williechiu40.wordpress.com/2016/12/01/wp_date_query-entrails-generatewp/

How to Add Post Type Archive in WordPress Navigation Menus

Recently, one of our readers asked if it was possible to add a link to custom post type archive pages in WordPress navigation menus. An archive page in WordPress displays a list of all posts under a specific post type, category, or tag. In this article, we will show you how to add post type archive in WordPress navigation menus.

How to add custom post type archive link in navigation menus

Custom Post Type Archives in WordPress

In WordPress, the term ‘Archives’ is used for a list of entries from a post type or taxonomy (like categories and tags).

If archives are enabled for a custom post type, then you can display them on your website. Typically, the URL of your custom post type archive page is in this format:

http://example.com/post-type-slug/

Post type slug is the nice name for your custom post type.

For example, we have a custom post type called ‘Deals’, and you can view its archive page at a URL like this:

http://www.wpbeginner.com/deals/

You can place a link to the archive page of your custom post type in your site’s navigation menus. This will allow your users to see all past entries posted in that post type on a single page.

Having said that, let’s see how to add a link to your custom post type archive page in WordPress navigation menus.

Adding Link to Custom Post Type Archive page in Navigation Menus

First, you need to visit Appearance » Menus page. You will notice a tab for each of your custom post type in the left column.

Custom post type tab on navigation menus screen in WordPress

You need to click on the name of your custom post type to expand it and then click on the ‘View all’ tab.

You will see an option for your post type archives. Check the box next to it and then click on the Add to Menu button.

Your custom post type archive will now appear as a menu item in the right column.

Post type archive menu item

By default, it will use your custom post type name with the word archives for the link label.

You may want to change this into something easier. Click on the menu item to edit it and then change its navigation label.

Menu label

Don’t forget to click on the save menu button to store your changes.

You can now visit your website to see the custom post type archive link in your navigation menu.

Custom post type link in WordPress navigation menu

Just like posts and pages, you can also add a single entry from your post type to navigation menus.

Simply select an entry and then click on add to menu button.

Adding single items from a post type to navigation menus

Don’t forget to click on the save menu button to store your changes.

My Custom Post Type Doesn’t Appear on Menus Screen

Custom post types need to match some requirements in order to be displayed on Appearance » Menus page.

First you need to make sure that an archive page exists for your custom post type. Typically it is a URL like this:

http://example.com/movies/

Replace example.com with your own domain name and movies with your post type.

If you can see entries from your post type on this page, then this means your post type supports archives but does not support other requirements.

Good news is that you can still add your custom post type archive page as a custom link.

Visit Appearance » Menus page and then click on the ‘Custom Link’ tab to expand it.

Adding a post type archive link as a custom link

Enter the URL of your custom post type archive page in the URL field and add the label you want to display in the link field.

Next, click on the add to menu button, and you will notice the custom link appear in the right column.

Custom link item in navigation menu

You can now click on the save menu button to store your changes.

We hope this article helped you learn how to add post type archive in WordPress navigation menus. You may also want to see our list of 12 most useful WordPress custom post types tutorials.

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 Post Type Archive in WordPress Navigation Menus appeared first on WPBeginner.



source http://www.wpbeginner.com/wp-tutorials/how-to-add-post-type-archive-in-wordpress-navigation-menus/

Introduction to WordPress user roles and capabilities


WordPress defines what a user can and can’t do by using a system of roles and capabilities, but what does this actually mean? Below we’ll analyze roles and capabilities a bit and see how we can alter them with the use of a plugin. User roles
Roles are essentially user groups, WordPress comes with six out of the box. These go from the most basic of subscriber all the way up to the most powerful one of Super Admin. Let’s learn a bit more about them.
Subscriber: the most basic role a user can have. A subscriber can only read published posts and pages and modify their own profile.
Contributor: a contributor can create new posts and modify their content, but can’t publish them.
Author: an author can create, modify and publish their own posts.
Editor: the editor can do anything an author can do and additionally has the capability of modifying, publishing and deleting other users’ posts.
Administrator: along with all the above permissions and administrator can handle administrative tasks, such as installing plugins and themes, modifying site settings and more.
Super Admin: the final user role can only be found on multisite installations and grants the user the
Source: https://managewp.org/articles/13933/introduction-to-wordpress-user-roles-and-capabilities




source https://williechiu40.wordpress.com/2016/12/01/introduction-to-wordpress-user-roles-and-capabilities/

You’ve Never Seen WP Forms Designed This Way – Live!


Supercharge the way you design forms! https://elementor.com/pro
With Elementor Forms, you no longer have to work on the backend, and can design every aspect of the form, including buttons, fields, placeholders, titles, frames, all from one visual editor.
Elementor Pro launches on the 12.12. Pre order and get 50% off your purchase.
Source: https://managewp.org/articles/13932/you-ve-never-seen-wp-forms-designed-this-way-live




source https://williechiu40.wordpress.com/2016/12/01/youve-never-seen-wp-forms-designed-this-way-live/

November 2016 Plugins & Themes Vulnerabilities Roundup


This is a monthly roundup of all the vulnerabilities in WordPress plugins and themes reported during the month of November 2016. During November no WordPress core vulnerabilities were reported. This roundup is made possible through WP Security Bloggers, an aggregate of popular WordPress security blogs and websites that publish WordPress security news and updates. Overview of WordPress Vulnerabilities in November 2016
In November 39 WordPress plugin vulnerabilities were reported. That is the highest number of vulnerabilities ever recorded since July this year, when we started recording these statistics. It is also quite surprising that we are still seeing fixes for vulnerabilities reported during the Summer of Pwnage, which took place during July 2016.
We are also noticing that the number of plugins being taken offline from the WordPress repository is increasing. Plugins are taken offline when developers do not fix the vulnerabilities, or the developers cannot be reached hence the vulnerabilities are not fixed. This is a good initiative since it ensures that the majority of WordPress plugins on the repository are being maintained and above all, are secure.
Below is the complete list
Source: https://managewp.org/articles/13931/november-2016-plugins-themes-vulnerabilities-roundup




source https://williechiu40.wordpress.com/2016/12/01/november-2016-plugins-themes-vulnerabilities-roundup/