…me and plugin developers, and how to use Conditional Tags in WordPress development. In addition, I came up with five different example cases in which Conditional Tags come in handy. In the following five tutorials, we went through 65 Conditional Tags in total. There were 66 documented Conditional Tags when…
…me with a custom post type, using WP_Query to output posts of that custom post type in the sidebar.You do this in two steps: Register a custom post type for your sidebars. Create a function to output the content of your sidebars and add that to the sidebar.php file in…
…me CSS classes relating to the page structure of your site which you can use to target styling and create sections for your page-based site which look quite different.In this tutorial we'll work with a site based on hierarchical pages and style each section of the site using a different…
…merce; today we will look into the various settings for Products.ProductsThe tab right next to the General Settings is Products. This section of the plugin starts right off with two options which are:Product OptionsInventoryProduct OptionsThe following options come under this section:Product ListingProduct DataProduct Image SizesDownloadable ProductsProduct Listing1. Product Archive/Product PageAs…
…members that the object can use. There is no class—just objects. Every object can then be used as prototype for another object.This concept is extremely flexible, and we can use it to simulate some concepts from OOP, like inheritance.Implementing InheritanceLet’s look at what we want to create with this hierarchy…
…me the directive getScroll. This directive will update the scroll value each time the browser window is scrolled, and based on scroll the affix classes will be updated..directive('getScroll', function($window) { return { scope: { scroll: '=scroll' }, link: function(scope, element, attrs) { var scrollwindow = angular.element($window); scrollwindow.on('scroll', scope.$apply.bind(scope, function() {…
…meters This template tag accepts only one parameter: $category_ID (optional—integer):The ID of the category.(Default: The queried category) Usage <?php $cat_desc = get_category_description( 15 ); ?> Getting the Description of a Tag: tag_description() This template tag returns the description of a tag. Parameters This template tag accepts only one parameter: $tag_ID…
…mework, which reviews the benefits of Yii and includes an overview of what's new in Yii 2.0, released in October 2014.In this Programming With Yii2 series, I'm guiding readers in use of the newly upgraded Yii2 Framework for PHP. In this tutorial, I'm going to introduce you to using the…
…mented the sign-in and logout functionality for our Bucket List application. In this part of the series, we'll implement the back end and front end required for a user to add and display bucket list items.Getting StartedLet's start by cloning the previous part for the tutorial from GitHub.git clone https://github.com/jay3dec/PythonFlaskMySQLApp_Part2.gitOnce…
…ment website. To access the store pages, you need the base URLs. This can be edited in the store view.The base URL can be modified in two ways: through the back end, or by applying a SQL query. To modify the base URL from the back end, go to the…