The Customize API is object-oriented. There are four main types of Customizer objects: Panels, Sections, Settings, and Controls. Settings associate UI elements (controls) with settings that are saved in the database. Sections are UI containers for controls, to improve their organization. Panels are containers for
Installing the SSL Certificate Once you have purchased the SSL, it needs to be installed. This is done by deciding which domain will have the certificate. If you have a hosting account with unlimited domains and maintain more than one website, you’ll need to choose
Social media sharing buttons are a must have, especially for a blog. Sure, the first solution that comes to mind for adding such buttons is a plugin, and there are plenty of free and premium plugins to choose from. But if you are picky like
But first, Why avoid plugins? There are a number of reasons why you should always try and use WordPress’ built in code and services, rather than a plugin. The main benefit is that you don’t have to rely on a third party (the plugin developer)
ওয়ার্ডপ্রেসের সর্বদা ইনবিল্ট বৈশিষ্ট্য রয়েছে যা আপনাকে আপনার সাইটের সাথে দূর থেকে ইন্টারঅ্যাক্ট করতে দেয়। এটির মুখোমুখি হন, কখনও কখনও আপনাকে আপনার ওয়েবসাইট অ্যাক্সেস করতে হবে এবং আপনার কম্পিউটারটি কাছাকাছি কোথাও হবে না। দীর্ঘ সময় ধরে, সমাধানটি ছিল xMLrpc.php নামের একটি ফাইল। তবে সাম্প্রতিক বছরগুলিতে,
Open Graph tags need to be printed in the website header and contain content and technical information about our site, like country, language, title, and image to display on social networks (even different from what we show on site). So we can use the wp_head hook to add
Universal PHP Code for Canonical URLS Below is the code that you need to add within the head of your theme template: <link rel="canonical" href="https://www.bybe.net<?php echo $_SERVER;?>"> The above code will be added to all pages, it will protect you from duplicates from www/non-www, https/http,
Hopefully, you have already seen some blogs use displaying the total view number for every post to prove their visitors engagement, and now you may want to know how it is done? Do you want to know how many times a particular post has been
/** * Get the first image in a post. Strip Version. Retrieve the first image from each post and resize. * * @param string $size get the first image size. * @link https://css-tricks.com/snippets/wordpress/get-the-first-image-from-a-post/ * see * Usage: Include in functions.php * <?php echo get_first_image('thumbnail'); ?>
Let’s say your blog is set to display ten posts per page, as specified via the WordPress Admin under Settings ▸ Reading. Once set, ten posts will appear on your home page, archive pages, search results, and so on. In other words, if it isn’t