Warning: count(): Parameter must be an array or an object that implements Countable in /home/top10hos/public_html/wordpressluv/wp-content/plugins/post-sorter/post_sorter.php on line 553 Wordpress | WordpressLuvSkip to main content
WordPress assign a unique number to each and every item in the site. For example, the User ID is a unique number generated by the WordPress system to help you to identify each user on a website. Sometimes while installing a new theme or arranging multiple items in your WordPress site, you will need to find a user ID , post ID or category ID. There are different ways to find the ID.
How to find Category Id in wordpress
From your wordpress admin, Go to Posts » Categories
Move the mouse over the Category title (without clicking) and notice the URL that shows up at the bottom left corner of the browser, as shown in the above screenshot. On the link look for the part tag_ID=a, where ‘a’ is the WordPress category ID.
Click on the category name. WordPress will open the category editor page. Look at the browser address bar. You will be able to see the category ID in your browser’s address bar.
Simply move the mouse cursor over the WordPress Category name and right click on it . Select Copy Link Location’ or ‘Copy Link Address’ from the right click menu and paste the URL to a text editor such as notepad
WordPress categories are very convenient way to group related posts together. Your reader can find posts in a specific category in one page and read pots of their interest . Setting up categories provide a proper site structure. You can assign one or more categories while creating the post. See fig below.
In wordpress each category has its own page. Add category title to your menu. (Refer How to add navigation menu). Your reader can view all the posts on a certain topic in one place.
Before proceeding let us have a look at creating category page in wordpress. Visit Posts » Categories page. On this page you can Add / Edit WordPress categories. Refer the following image to see how to add/find category slug. We are going to use category slug while creating template.
Click on View link to view category page. When a viewer clicks on a Category link by default, WordPress shows a page with list of Posts in that particular Category. But you can easily create a custom looking page for different categories on your site.
Since Navigation menu guide your visitors to important sections of your website, it is the most important design element on any page.
In most wordpress themes, this menu is placed as a horizontal menu close to the header. Of course, the menu location can vary depending on your theme and some themes support more than one menu locations.
When you install wordpress, it automatically creates a default Navigation menu. This menu contains a list of your top-level pages. It’s generally a bad idea to include a list of all page titles in menu. Keep your Navigation Short and List the Most Important Pages First.
Fortunately wordPress provides a user friendly interface which let you add and manage any any page including category and tag archives, posts, pages and custom links.
Step 1:Login to the WordPress Dashboard.
Step 2: From the ‘Appearance’ menu on the left-hand side of the Dashboard, select the ‘Menus’ option to bring up the Menu Editor.
Shortcodes is a special tag that lets you add functionality to your posts, pages, widgets, without actually writing any code. A shortcode looks like a piece of text enclosed within square brackets. Some examples are given below.
When you load this blog page in a web browser, WordPress replaces the shortcode and actually displays the content. This eliminates the need for copying and pasting codes from other sites, or repeating a tedious task all over again. Read More
Functions.php is a file found in your Theme’s folder. To understand the file location, look at the following wordpress theme hierarchy.
Adding Code to the Functions File
The functions file is where you put various features and functionality within your wordpress theme. You can achieve this by defining your own functions or by calling built-in WordPress functions. For example, you can control :
Use of featured images
The image sizes supported by your theme
Decide whether to show post from a particular category in home page or not
And more ….
You can produce the same results by using a WordPress Plugin. In other words the functions file behaves like a WordPress Plugin. But using lots of plugins can slow down your blog’s performance.
It is no secret that WordPress is currently the number one most dynamic and advanced content management system out there.
WordPress has made it possible for anyone with or without coding experience to instantly publish a blog without taking all the extra steps of dealing with FTPs and servers.
This open source software has proven to be very advanced and continues to advance each year.
WordPress was once only used for blogging, now WordPress can be used as a regular website with a one-page layout or multi-page layout. Google, Yahoo, and Bing are the 3 biggest search engines in the US.
With that said, ranking on these 3 search engines can guarantee great website visibility.
Here’s the deal.
Read below the 7 ways to make your WordPress website SEO and mobile friendly.
7 Ways to Make your WordPress Site SEO and Mobile Friendly
Tip #1: Blogging Topic Target
Optimizing a WordPress blog to rank better in search engines can be done by topic targeting. This is a safe and smart strategy to do when writing a blog.
Search engines often rank and place websites in different categories and in different level of visibility.
So here’s the deal.
When blogging, topic targeting is a method to help a blogger by producing content that isn’t too far out of a websites category.
All blogs included inside a website must be different, but they must have a representing topic. Staying on topic is a great SEO practice that can ensure higher visibility.
Tip #2: Font Size
Mobile device searches have grown into the billion margin. With so many mobile devices in use, it no longer is an option for a website to be mobile friendly.
Having a mobile-friendly website can ensure mobile visitor satisfaction and higher ranks.
The best way to make a WordPress website mobile friendly is by increasing the font size.
When increasing the font size on a website, the font will look much bigger on a mobile device, thus, be much more convenient and readable for the mobile device user.
Tip #3: Use WordPress SEO Plugins
WordPress is known for its large theme and plugin library. Most of the items in this library are free to use and some come with subscription deals.
Some of the best SEO plugins in WordPress are free to use. These plugins will instantly give the option of setting the correct meta tags per blog page.
SEO plugins will also create an RSS and sitemap file automatically.
Installing an SEO plugin to WordPress is the most beneficial thing to start off doing.What are the 3 best free WordPress plugins?
All in One SEO Pack
Tip #4: Use WordPress Image Compressor
In WordPress, a blogger may forget to compress every image before an upload. Without compressing an image, the full image size will reflect and weigh on the page.
Therefore, it is a great idea to use a WordPress plugin for auto image compression.
So, what is the best plugin for image compression?
WPSmushit doesn’t just compress new upload images, but it will automatically compress an entire image library in just minutes. This is a very handy plugin to install.
Tip #5: Cross Browser Testing
When designing and using certain JS animations in WordPress, a cross-browser test should be conducted.
The cross browser test will show what a website looks like in all different browsers and any website effects are compatible with all the different browsers.
A WordPress website that works in all browsers is well built and will be categorized as reliable and better designed.
Tip #6: Internal Linking.
Internal linking is a great SEO practice and it does make a blog essentially even more connected.
Adding up to 3 internal links per blog is a great practice and will make a website even more expansive.
Tip #7: Responsive Design
Mobile devices have different sizes! A responsive design is necessary to make a WordPress website mobile friendly.
Most WordPress websites do have a theme library and most of the themes there are mobile friendly, however, a responsive check should be conducted to ensure that all elements inside the theme are responsive.
There are many benefits to making your WordPress site both SEO and mobile friendly. Increasing your SEO rank can lead to major website hits and business success.
Converting your WordPress site into a mobile friendly layout can bring great visitor satisfaction.
Use these 7 ways provided above to instantly make your WordPress site SEO and Mobile Friendly.
About: Ntw Designs is a digital web design company that provides a variety of web services for companies of all sizes. Ntw design specializes in web design, brand marketing, and company research.
Having an interactive slideshow on top of a web page let you highlight your site’s important details on your site in a visual manner. Sliders immediately grab your visitors’ attention and allows users to quickly take action. Most websites put slideshow at the top of the page before their main content.
There are many WordPress slider plugins available which allow you to create your own sliders and add them to your home page, landing pages, posts, or any where you want.
Meta Slider is by far the most popular slider available for WordPress It comes with four jQuery sliders –Nivo Slider (responsive, 16 transition effects, four themes), Coin Slider (four transition effects), Flex Slider 2 (responsive, two transition effects, carousel mode), Responsive Slides (responsive, fade effect only).
In this page, you can create new slider. Creating a new slider is simple – add new slides, change settings and save.
Putting a Slider on wordpress post/pages
1: Create a post/page by going to Posts/Pages > Add New. 2: At the top of the page content, you will notice a button to add a slider. Click this button and select the slider from the options available (if you have only created one slider, there will only be one option).
How to put the slider on the front page of your website
1: To put the slider on the front page of your website, you will first need to create a page(as mentioned above) for home page. Go to Pages > Add New. 2: Add slider in the new page. 3:Once the page is ready, Go to Settings > Reading in WordPress and set the front page display as “a static page”. From the dropdown, select the newly created “Home” page as your static page.
WordPress has plenty of WordPress slider plugins ready at your disposal. Most will get overwhelmed by the many slider plugins available in WordPress. Those who want to try using plugins won’t go dwell into buying them. Others just don’t want to spend money in a slider. So if you’re looking for free WordPress plugins to try out in your website or blog, here are some of the best.
Meta Slider is a popular WordPress slider plugin that lets you create slideshows by simply selecting images from your WordPress media library, drag and drop it in to place, set captions and you have your own slider. You can choose from various slider designs and has a shortcode to easily embed the slider to your website.
Here’s a look at what’s best with Meta Slider:
Easy to use interface.
Create SEO-optimized slideshow in seconds.
Built in widget and shortcode.
Plenty of slideshow configuration options.
Compatible with WordPress multi-site.
Compatible with translation plugins like qtranslate, polylang, and WPML.
If you upgrade to its Pro version, you’ll get the following:
Easing Slider Lite is the second most downloaded WordPress slider plugin in the repository. Garnering more than 400,000 downloads, this lightweight plugin lets you set the dimensions of your sliders and you also have the option to make the sliders responsive.
With Easing Slider Lite, you can choose from two transition effects: fade and slide. And like many slider plugins, this also has support for shortcodes. The only problem is you can only create one plugin for your site, if you need more sliders, you’ll need to upgrade to Easing Slider Pro.
Easing Slider Lite has the following features:
Only 16kb minified and that already includes styling.
Navigation arrows and pagination.
Bulk image uploading integrated with WordPress Media Library.
Wow Slider is a fantastic WordPress slider made for non-coders. This slider comes with tons of stunning visual effects and professionally made templates that you just have to point and click to create sliders. With that in mind, building one will only take a few seconds without any need for coding or image editing.
Slide Deck 2 is a free WordPress plugins that comes with plenty of features. For a free plugin, you’ll get the advanced functionality that you usually pay for in a plugin but this time, it’s free.
Easily create content sliders out of almost any other content. You can also connect to a variety of sources like Pinterest, Flickr and YouTube without touching any code.
The lite version lets you create sliders out of 14 content sources but does not include Facebook and NextGen Gallery. If you need content from these sources, you may need to opt-in for the premium version.
Promotion Slider is a JQuery Slider that lets you insert a simple slideshow or use it for rotating ads in your website. It is a highly customizable plugin that offers complete control on the slider.
With its straightforward short codes and extensive flexibility, anyone can create a slider with just a few clicks, while power users can take advantage of the special actions built in the plugin.
The plugin also features:
Automatic inclusion of featured images attached to the promotion.
SEO friendly JQuery animation that is compatible even in mobile devices.
Comes with various default styles to choose from.
Can link external URLs instead of promotion pages in the slider.
Allows to display certain post type or limit the post on a certain category.
Can display title and/or anchor, or excerpt from each post or promotion.
Can work with custom post type.
Can display multiple sliders on a single page without conflicts.
Soliloquy Lite is a simple yet responsive slider plugin for WordPress. It’s so simple that you do not need to download any Flash software to create and upload sliders. In fact, it can work out of the box without fiddling too much with its settings.
Through custom post types, Soliloquy lets you create any number of responsive sliders with any number of images in it with just a few clicks of the mouse.
This light version of the plugin works well with most of your needs for a slider. If you need more features like video slides and have access to Addons, you’ll need to purchase Soliloquy Pro. Otherwise, enjoy these features:
Can use custom post types to create unlimited WordPress sliders.
Drag and drop compatible.
Completely responsive sliders and can work with touch enabled devices.
Shortcode and template tags.
Smart JS and CSS loading.
Media uploader button to easily insert images in you slider to the post in your WYSIWYG editor.
Smooth Slider is a WordPress slider that can let you create a slider in as fast as 50 seconds. Under this time, you have already embedded recent, featured, or category-specific post using Smooth Slider. Smooth Slider lets you create dynamic slideshows for your post, pages, images, and custom post types.
Smooth Slider lets you place content and image slideshows with a customizable background anywhere in your site.
The plugin boasts some of the best features like:
Lets you preview the slider in Admin panel.
SEO friendly slide show.
Take full control of its looks through the Settings panel.
No coding required.
Create you own stylesheet.
Sliders can be removed with just a single click.
Six transition effects
Comes with template tag, shortcode and widget.
If you need more features, simply upgrade to Smooth Slider Premium. The premium version allows you to create unlimited settings, unlimited custom sliders, multiple design options and other cool features.
Responsive Slider is a slider plugin that lets you create slides that contains linked images and titles. This is a very simple slider with only a few settings that won’t overwhelm new users yet advanced users will find it easy to use. To add a new slide, all you need to do is place it anywhere in your site using a shortcode or into your theme using a function call.
However. this plugin is only limited to one on your entire website. If you need more sliders to add on each of your page, we suggest to go use other plugins instead.
Smart Slider 2 is a WordPress slider plugin tha comes with an intuitive interface for backend. This makes it easy for you to design a beautiful slider in your WordPress blog or website. All you need to do is grab a new layer, move into the canvas and insert some items to the canvas through dragging and dropping and your slide is ready.
Administrator page with live preview.
Fully integrated to WordPress.
Multi-level animation system.
100% responsive slider with advanced responsive mode.
Change the overall look and feel even without any coding background.
By default, WordPress shows your most recent blog posts on the front page of your site. WordPress comes with built-in support for creating a splash page as the front page(static front page), and a separate page for blog posts.
From your admin panel go to Setttings » Reading. Scroll down to Front page displays option. But before going there, you need to create 2 new pages.
WordPress Custom Home Page and a Separate Blog Page
Do you want to have different design / appearance for different pages in WordPress? In this article, we will show you how to create and use a custom template for a page in WordPress.
From your wordpress admin, while creating a page you can see a template drop down menu under ‘Page Attributes’ section. Clicking on it will allow you to select the template for that page.
But first you need to create a custom page template and put it under your theme’s directory.
Creating a Custom Page template in WordPress
By default WordPress utilizes a template file called page.php to control the appearance of your pages. You will find it in /wp-content/themes/ directory. Now you need to add a custom page template here. The easiest way to get started is by creating a duplicate of existing page template (ie. page.php) provided by your theme. Rename your file like page-home.php, page-contact.php etc. Now start editing your custom page template file. You can make changes in their layout and appearance. This requires a basic understanding of HTML, CSS, and PHP. Once you are done customizing, upload it back to your theme folder using FTP.
Warning: count(): Parameter must be an array or an object that implements Countable in /home/top10hos/public_html/wordpressluv/wp-content/plugins/post-sorter/post_sorter.php on line 553
In this article I will show you how to choose display different sidebar for each post and page for WordPress. There’s several different plugins that help you gain this type of flexibility with your site.
Easy Custom Sidebars
This plugin allows you to replace any sidebar/widget area in any WordPress theme without any coding.
Go to your wordpress admin >> Plugins >> Add new . In the search box type “Easy Custom Sidebars” and hit enter key to search. Install and activate the Easy Custom Sidebars plugin.
You will see new menu item “Theme Sidebars” under “Appearence” menu. Click on it.
Create new side bar here.
Replace your old side bar with new side bar.
Select posts/pages/categories where you want to display this new side bar. Save your side bar.
Go to Appearance >> Widgets. Drag a widget to side bar. Edit and save it.
Now when you are writing a post or a page, and you want to display a custom sidebar all you need to do is add the custom field “Sidebar” and include the name of the sidebar file. For example if you insert “wpbpage”, it will display sidebar-wpbpage.php as your sidebar.
There are few basic settings and configurations to do after installing WordPress to ensure reliability, and top of the line performance.
Change The Title, Tagline and Time zone
To change these, go to your Settings in your dashboard and choose General.
Change both your site title and tagline to something that relates to your site. Now scroll down the page to update your timezone.
Scroll down the page click on save changes.
Delete the Default WP Admin Account
By default WordPress Creates ‘Admin’ as a username for your Blog. Hackers know this and has half the equation to try to get your password. To avoid this, use a different admin username.
Login using your admin user account. Once logged in goto Users > Add New Fill in all the details for a new user account. Choose the Administrator privileges for this new account .
Once that new account is created, log out of your “admin” user account and log back in using your new user account that you just created.
Once logged in under the new user account, go to to all User list. Pass the mouse over use “admin” and click on “delete” link. When you do this WordPress will prompt you to reassign all the posts associated with “admin” to another account. Choose your new account from the drop down list.
Once you have completed the step of deleting your own “admin” account all the posts previously posted under “admin” will be associated with your new account and you are no longer using the default username.
Delete default Posts and page:
WordPress install comes with default post and pages. Click on Posts from left menu. Hover over the sample post and select Delete. You can delete the sample Page in the same way via Admin -> Pages.
Rename Uncategorized Category
WordPress install comes with 1 default category named Uncategorized. Unlike the post and the comment this category cannot be deleted. When an editor forgets to select a category, WordPress automatically selects Uncategorized category for that article before it is published. When you have blog posts listed as “Uncategorized,” It makes you seem careless, resulting a symbolic black mark against your blog’s reputation.
To rename the uncategorized category Click on the tab Posts > Categories. Bring your mouse over to Uncategorized and an Edit option will appear. Click Quick edit and change your category name and slug to Other.
Set up WordPress Permalink
By default, WordPress offers permalinks like this:http://wordpressluv.com/?p=123. This type of permalink is not search engine friendly and not very user friendly. More descriptive URL with keywords may boost your rankings.Other than this, permalinks will give a brief idea of what your post or page is about without looking at the content and can affect a reader’s decision whether or not to click links to your site. You can change the structure of your permalinks at any time, however doing this changes the URL of your pages. You should set your permalink when setting up your blog for the first time.
You can find various permalink settings under WordPress dashboard > Settings > Permalink.
Akismet comes with WordPress which eliminates comment and Trackback spams without your interaction.
To activate that, you need API key from Akismet It is free you can get it from Akismet.com/get.
Click the Plugins link on the left navigation menu of the Dashboard to load the Plugins page.
Click the Activate link below the Akismet plugin name and description. A yellow box appears at the top of the page, saying Akismet is almost ready. Go to Akismet Configuration and enter API key to activate it.
Update your Profile
From your wordpress admin left menu, click on Users and update your profile.
After you have installed your WordPress theme and Plugins, Delete all unused Themes and Plugins. It will improve your WordPress Performance, security purpose as well as to reduce the server load. Hacker might discover an exploit those unused themes and plugins.
Delete Unused Themes
From your WordPress dashboard go to Appearance > Themes. Here you can see available themes. This include active theme and other unused themes. You can’t delete an active theme. Pass the mouse over unused themes and click on theme details button. Click on it.
In the preview screen, click Delete button in the right bottom corner of it. Now your theme is successfully removed.
It is important to take regular backup of your site. It helps to recover your site in case of server crash or when you need a new host. There are so many free and premium backup plugins available that creates backup of your website and keep your site safe and secure.
Add Contact me page
Use plugin Contact Form 7 to add contact page to your site.
There may be a number of reasons for copying your post or page. For example, you own two WordPress blogs, and you have written some pre-configured post/page with some basic look and want to use same format in another site without worrying about how to format everything. Let us see how to copy specific posts and pages from one of your WordPress site to another WordPress site.
You can do this in 4 steps.
Create a new category with unique name
Find the post you want to move and put that post in new category.
Export the post in new category.
Import it to new site.
#1: Create a new category
From your blog’s dashboard go to Posts » Categories
Just fill the fields and click Add category button. For eg. here I am going to create a new category called ‘Export’.
Note: You can leave the slug, Parent and description blank.
#2: Edit the post, assign new category
From your blog’s dashboard go to Posts –> All Posts.
Find the post you want to copy.
Hover your cursor over the title of that post. Click the small Quick Edit link beneath the post’s name.The post title will expand to become an editing pane:
Here select the newly created category. Click Update.
#3: Export the post
From your blog’s dashboard, find the “Tools” menu on the left hand side, near the bottom of the dashboard.Choose the “Export”from the list of options.
Here you will have and option to decide what you want to export. In step 1 we created a new category and in step 2 we selected the post you want to move and put it in new category. Now we are going to export the post in that category. Click on post and you will see more options.
Select newly crated category here. Click “Download Export File” to create an “XML” file of your entire blog on your computer.
Save the file in an easy to access folder, or on your desktop. You will need this file in order to import it later.
#4: Import Post to new site
Log into your wordpress blog and find the “Tools” menu on the left hand side, near the bottom of the dashboard.Choose the “Import”from the list of options.
Choose the WordPress option.
If you haven’t yet installed the importer plugin on This will bring up a popup to install the plugin. Click “Install Now.”
After installing and activating the plugin, browse for your XML file on your computer.
Click “Upload” to upload the XML file to the new blog.
In the next screen, it would ask if you need to create a new user or if you want to assign the posts to existing user.
Just select to assign the posts to the existing author user on the destination blog so that she would be author of the WordPress posts imported. Select “Download & import file attachments” to move your media along with the post.
Now you are done exporting a single post on the WordPress site. You can open the post in edit mode to make changes.
Note: If you do not want to keep the newly created category, you can remove it from post categories or delete it from categories list(go to Post>>categories and delete it).
WordPress is a great tool for creating functional websites. Most people consider WordPress as just a blogging platform. But the truth is wordpress is an extremely powerful platform to create different types of fully functional websites. Each new release of wordpress includes many features to enhance functionality of your WordPress site. In this article we will explore one such feature called ‘custom post types’ in WordPress. WordPress added this in version 3.0 onwards
What is custom post type? Do I need it?
Basically WordPress is designed to be a blogging platform. When it comes to creating content for your WordPress site, you can write either posts or Pages. By default, WordPress comes with certain post/page writing structure. i.e. your post title in the upper field, post body content in the main post editing box below it, select a category, add tags etc. In some situations, you want to create something different than this.
Examples of Custom Post Types
For example, you have a tech blog where you write IT-related news, events, updates etc. Now you want to add a product review section to your site and you do not mix this with regular blog content. You want to create a separate section for these Reviews. I’m sure you want to use a different structure and different set of data inside your review post. You can extend the existing WordPress infrastructure and accomplish this using ‘custom Post types’ along with ‘custom fields’.
Custom Post types allow you to create new content sections on your site. It will add a new administration menu, dedicated editing pages, custom taxonomies and many more utilities required for full fledged publishing.
Some other examples are:
A food blogger wants to rate recipes book post
A music blogger wants add a post to sell music album cds
A travel blogger wants to list popular tourist destinations
Make A Product Review With WordPress: Custom Post Types & Custom Fields
In this article I’ll explain how to create a custom post with an example. Let us see how to create a product review custom post. We’re going to add a new section of our website “Product Reviews” that is dedicated for product reviews. You can implement this using custom post types and custom fields. Please note that you’ll need to be familiar with PHP to adjust code based on your needs.
Step 1: Create a Custom Post Type
The easiest way to create a custom post type in WordPress is by using a plugin called Custom Post Type UI .
Upon activation, the plugin will add a new menu item in your WordPress admin menu called CPT UI
Go to CPT UI » Add New to create a new custom post type.
In this page you can see two columns. Custom Post Type UI plugin allows you to create custom post types (On your left) & custom taxonomies (On your right).
Create Custom Post Type – On your left, fill out the Post Type Name, Label fields and description. At the bottom you can see 2 links “Advanced Label Options & Advanced Options” . You can leave the default, or you can click on it to set new values. After filling click on the ‘Create Custom Post Type’ button to add your new custom post type.Now you can see new menu item in your WordPress admin left menu bar (just like posts /pages menu). The label entry will appear in your WordPress admin left menu bar. (See fig below). In my case I used the text “product reviews”.
Custom taxonomies – WordPress uses taxonomies to group post together. Two popular wordpress taxonomies are Categories and Tags. When you create a custom post type called product review, even though you can use categories, you may not want to mix this review with regular blog because they are used differently. So it is a good to create custom taxonomies to group custom posts.For example, create a new custom taxonomy called Review categories. Then you can add topic terms like: Computer, TV, Phone, etc. This would allow you and your users to sort reviews by each topic.Custom Post Type UI plugin allows you to create custom taxonomies. Go to CPT UI » Add New. In this page you can see fields to create custom taxonomies (On your right). Enter the fields Taxonomy Name, Label and Attach to Post Type( Note: Since I’m creating this custom taxonomy for custom post type, I selected Product reviews).
At the bottom you can see 2 links “Advanced Label Options & Advanced Options” . You can leave the default, or you can click on it to set new values. I just want to mention one option listed there >> hierarchical == false.
Now You can see new menu item to add Review Categories. Click on it and create new topics.
Now your custom post type is ready. From your WordPress admin left menu bar click on your newly created custom post type( In my case I used the text “product reviews”). Here you will see a regular post writing page on WordPress. But when you create a product review, you need to add additional information associated with each product. For e.g. a database of digital cameras for instance might need:
Rather than adding this info directly to the description of the product, It is wise to create custom fields to hold this info.
Step2: Adding Custom Fields to a Custom Post Type
Since WordPress native custom fields capability is not enough for our need, we are going to use a third-party plugin (read A Guide to WordPress Custom Fields). Here I’m using Advanced Custom Fields plugin. Advanced Custom Fields is a free plugin that let you create different types of custom fields, create them as a group and then assign that group to your custom post types. Many add-ons also available for this plugin. For e.g. if you want to use star rating , use this acf add-on.
After installing you will see custom fields menu link on left sidebar.
Here you can create a set of fields(called field group) and then assign this to your custom post types.
Click on “Custom Fields” and create a field group called “Product Review” . Click “Add Field” to create the fields needed. In this example I’m adding fields like “Pros”, “cons” etc.
In the “Location” section, you can assign this field group to your product review custom post type.
In the “Options” section, you can configure how you want your field group to be displayed. You can also decide which all other default WordPress inputs to be hidden when the field group is displayed.
Create a product review
Now that you created your cusom post and template, we will now see how you can create your custom post:
From your wordpress admin left menu Click Product Reviews >> Add Product Review.
Write and publish a product review. But when you view the post that is just created, WordPress template hierarchy will use default single.php template file. There these custom fields values will not be displayed. So next step: we need to work on a template that includes these custom post types into our site so they display properly. To display these custom posts, you need to either edit default template file or create a custom single post template.
Step3: Create Single Post Templates for Custom Post Type
Let us see how you can create a custom single post template. To display your Custom Post Type you need to create a new file name single-YOURCUSTOMPOSTNAME.php in your theme folder. So let’s say your custom post type is called”Productreview”, then you need to create single-productreview.php to display your single custom post.
Make a copy of the single.php file in your theme directory. Rename it to single-productreview.php. This isn’t something you can do from the wordpress dashboard. You need to copy the file using your hosting control panel or FTP application.
Refer this article to see how to FTP it to your theme directory.
Refer this article to see how to make a copy of single.php using cpanel.
Now go back to Appearance > Editor in your WordPress dashboard, select your theme, and the single-productreview.php file name in the right sidebar. Here you can add code to display custom fields or customize look and feel.
Displaying Custom Fields
To display the Custom Fields, Put the following tag within The Loop. Find where your main WordPress Loop originates.
Call the wordpress function get_post_meta().
Assign the name of the key that you want to appear. For example in my case, I want to display custom field called “pros”.
I hope, by now you understood about custom posts are and custom fields. There are many plugins available to enhance WordPress posting abilities. I suggest doing your own research and find the best solution to your need.
Have you ever thought how cool it would be to have the ability to write WordPress posts without having to go on-line and login to your dashboard? This is a question that pops up often especially among WordPress owners who have to write multiple blogs. It would also be great to have a local back up of your posts or having to upload photos faster. In this article we will examine different ways to login remotely and perform admin functions.
A major Pre-requisite
To manage any aspect of WordPress remotely, there is a fancy API called XML-RPC that MUST be turned on. All Weblogs (Blogging software that run on your local machine) post to your blog via XML-RPC.
According to the official WordPress Site , XML-RPC functionality is turned on by default since WordPress 3.5. However if you are still attached to older stable versions you can still enjoy the functionality of XML-RPC. To enable this, simply login to your site’s dashboard, go to Settings > Writing > #remote publishing and check the checkbox. Now you have the green light to work remotely.
1. Your favourite Email Client
Indeed it’s that simple! Your email client whether in your desktop or mobile device can write posts to your WordPress site. All that is needed is a unique email on your wordpress site that will Serve as a recipient of post content. WordPress will frequently check that email address via POP protocol for new messages. For every email message, the Subject is assumed to be the post title while the body is assumed to be the content for the title.
The built-in WordPress functionality to post via email is deprecated and will be removed in future wordpress versions. But all hope is not lost thanks to good old plugin methods. There are 3 popular plugins that achieve this:
We may not review all these plugins in this article since there are other remote publishing techniques that am dying to tell you about. For now lets use Post by Mail in Jetpack as a case study. After installing it go to Profile > Your Profile page, and enable Post by Email. A unique email address will be generated and this will serve as the recipient where you will send the post.
CAUTION: Let this recipient email remain private. Don’t CC anyone else when writing to the unique email.
Now let’s go to your favourite Email client (Outlook, Thunderbird or Apple Mail) and send a post to the unique email address. You can add other aspects of the post using shortcodes in the body. Assume we are writing this article from an email client. Here’s what we would have:
2. Windows Live Writer for Windows users
This is a great app that comes as a feature of Windows live essentials. In addition to the post writing functionalities that are readily available in Microsoft word, one can crop and resize images and attach maps from virtual Earth. There is even a custom Custom WordPress sidebar for easy navigation to your dashboard.
What do you need to run Windows Live writer?
Any 32 or 64-bit version of Windows 7, Windows 8 or Windows Server 2008 R2.
Processor:6 GHz or higher with SSE2 support.
Memory: 1 GB of RAM or higher.(You are better off with at least 2GB)
Resolution: 1024 × 576
A fast and reliable Internet connection: Don’t blame this application when you find it hanging frequently. It has to synchronize with your site server constantly so ensure your internet connection is nothing short of ‘good’.
This is desktop blogging application for Linux and Unix that connects seamlessly with WordPress based sites. It comes with an easy and quick to use interface to write posts. As the name suggests it works on Gnome based linux flavours (Ubuntu and the likes). It has a WYSIWYG styled text support with Spell checking linked to the dictionaries in your linux box. Oh! And the drag and drop support for images is relatively faster than other Weblog clients. You can crop, caption and resize them just as you want the article to appear on your website. Head over to the official site and grab it for free.
We haven’t forgotten you Mac users! SmartxBlog is to you, what GnomeBlog is to Linux fanatics. In addition, you can preview the articles in a browser before publishing them. I like the fact that you can also add multiple castegories, tags and even create an RSS feed. SmartXBlog has built-in Image Editor so you don’t have to bother using third party Image Editors. Think of this app as a local wordpress version that syncs to your live site.
To enjoy all these features make sure you have Adobe AIR runtime installed on your computer. Then head over to http://smartxblog.com/ and download the app. You will get a 30 days trial period after which you part with $9.9 for a 5-user licence and lifetime updates. There is a windows version too.
5. WordPress app By Automattic for Android and IOS
WordPress is now mobile thanks to this great app. You can now leave your laptop when going on holiday. With a tablet or smart phone you can now write posts and publish them instantly. You can even login to multiple WordPress sites you own and approve and reply to comments on your articles. It may seem abit confusing that the whole power of your dashboard has been brought down to an app. Even the icons that you are used to have changed. However after using it several times you get the hang of it.
Well, that covers most of the devices. Hopefully by now you can do remote publishing in wordpree.But just in case you don’t find an app for your Operating System check out this list. Have fun and remember: The security of your devices will determine the security of your wordpress site.
After creating custom taxonomy, I was hoping for was a simple option where I could uses the check box UI for selecting categories on each post.
Instead of that I got comma-separated text input.
I did some research and found out that, that plugin use a setting “Hierarchical ==>> false” when registering custom taxonomy. ‘hierarchical’=>false you get the metabox format WordPress uses for Post Tags:
‘hierarchical’=>true you get the meta box format that WordPress uses for Categories:
When you write a post/content on your blog, in you post writing page you will see the fields for entering title and body content. If you take a look at the WordPress post writing page you’ll notice a section below the post content text area is titled Custom Fields.
What if I don’t see Custom Fields section in post writing page?
There’s a chance you won’t see this feature. If not, look to the top right of your window and click Screen Options.
From there make sure the Custom Fields option is selected.
Once selected you should see it at the bottom of your screen like I have above.
Custom fields allow you to add little bits of data to posts. The custom fields section contains two input fields labelled Name and Value. The key identifies the specific field and the value is the information that will be displayed.
For examples if you are writing a post about a tourist place you can add Custom field like “Today’s Weather”, and then add the value “Sunny”.
This extra information is known as meta-data. Now this information related to your post can be displayed anywhere within your WordPress theme.
Make your Theme ready with Custom Fields
Custom fields don’t display by default unless your theme has been customized to do so. In order to get these values to display we need to add a small amount of PHP to our WordPress loop function inside our theme’s code. Let’s do that now.
To start you’ll need a code editor and access to your theme directory which is located at wp-content/themes/themename.
Open single.php file inside a code editor. Find where your main WordPress Loop starts.
Add this code inside the WordPress loop to display all custom fields associated with that post.
“the_meta” function will display all fields associated with that post.If you have 10 different fields that you want to display at 10 different locations, then we will have to use “get_post_meta” function.
So, what do you do if you see an update message (“#wordpress xx.x is available! Please update now”) in your WordPress Admin Screens? Never ignore that message. There are enormous variety of Scams and other malicious activities circulating around the internet. When wordpress notice a new malicious activity, they add updates to defend against them. WordPress constantly add new features, improvements and release ‘updates’ at regular intervals. Well, not just the WordPress core, but also plugins and themes providers also release ‘updates’ at regular intervals.
Check current site for updates
To check your website for WordPress Core, plugin, or theme updates, log into your wordpress admin and click Dashboard>>Updates.
You can see list of updates there.
Note: If a WordPress Plugin update is available, it also will be shown on the Plugin’s menu title, and on the Plugin List Page. If a WordPress theme update is available, it also will be shown on the theme List Page(Appearance>>Themes). You should always update WordPress Releases, Plugins and Themes to the latest version to make sure your website is also up-to-date with new features and security updates.
Version 3.7 onwards WordPress introduced automatic updates for minor releases (For example, it will automatically update itself from WordPress 3.7 to 3.7.1.). But this Auto update is not enabled for major releases like 3.7 to 3.8.
Update/upgrade your WordPress core, themes and plugins easily
Sure, updating can be a pain, but now you are able to update/upgrade your WordPress and plugins to a newer version easily and users never even realize that WordPress has updated. If your site is hosted with a managed WordPress hosting, the host usually takes care of automatic updates. For other users, you can enable automatic updates in 2 different ways.
There are times you like content elements on a blog post (perhaps a table design, some styling, or some layout which remains consistent) and you want to create another post with same configuration including all its widgets, template settings ect. Well, an easy way to do this, without having to know how to format anything, is by duplicating the post and making changes.
You can easily create a #duplicate post by using a plugin called duplicate post.
Duplicate Post plug-in Settings
The plugin comes with a number of settings. Avoid this step if you want to use default settings.Go to Settings >> Duplicate Post. There you can decide whether you’d like to do things like copy the original date, the original status (draft, published, pending), the original excerpt, the original attachments, children of the original page, and taxonomies and more.
There are two ways to duplicate a post or a page. Method 1:
Go to Posts > All Posts (or Pages > All Pages). Mouse over the title of the post(page) you want to duplicate. You will see two new links there – Clone or New Draft.
Clicking “Clone” will copy the post/page without opening it. Clicking “New Draft” will copy the post/page and also open it in the editor for you. Method 2:
Open the post you can to duplicate in edit mode.
On the post writing screen, you can click the link that says, “Copy to a new draft.” This will open a duplicate of the post or page in a new edit screen.
Including images in an article is the best way to illustrate your ideas. Adding Images make your content interesting and make readers more engaging. WordPress makes it really easy to add images to your posts. In this article we will discuss how to insert images into WordPress posts (or) pages.
Create a New Post/(Page), or Open an existing Post/(Page)
To create new Post, from your wordpress Dashboard go to Posts>>Add New (To create new page, go to Pages>>Add New ).
Note: If you want to add image to an existing post, open your post. Go to Posts>>All Posts>>click on the post’s title to view the edit page.
Click the Add Media button
Now you are in the post-write screen. Place your cursor where you want the image to appear and click the ‘Add Media’ button.
Now you will see insert media screen. To insert image, you have following 3 options.
Insert Your Image
Upload From Computer
First let us see how to upload images that are already saved on your computer. Click on upload files>> Click on the ‘Select Files’ button.
Find image file from your PC and click on Open button. Wait for WordPress to upload and crunch the image. Click on the blue Insert into post button to add the image to your post.
Note: After uploading an image from your PC, You will see a number of options(attachment details and attachment display settings) on the right hand side. You can either use the default setting displayed there >> Click on the blue Insert into post button or see how to use these settings .
Insert from Media Library – If you already have uploaded images and have a Media Library in your blog, select from any images in the media library by clicking on it, click on the blue Insert into post button to add the image to your post.
Note: After selecting an image from media library, you will see a number of options(attachment details and attachment display settings) on the right hand side. You can either use the default setting displayed there >> Click on the blue Insert into post button or see how to use these settings.
Insert from URL
Different settings for uploaded image – after uploading an image from your PC (or selecting an image from media library), You will see attachment details and display settings on the right hand side of the media up loader interface. Attachment details:
Attachment Details section displays:
A small thumbnail of the image
A links that allow you to Edit Image
A links that allow you to Delete image from your site.
Enter the title of this media.
Enter a caption that will be displayed below the image.
Enter the Alt text for the image to describe the media.
A description for this particular media.
Attachment Display settings
The Alignment setting controls where your image will be displayed and how it interacts with content on the page.
Link To You can create different types of image links here.
Media File: This is default option.This will automatically link to full-size version of the file.
Attachment Page: Links your inserted image to its WordPress media attachment page.
Custom URL: Allows you to set a custom link URL for your inserted image
None: This setting will remove the link completely.
Image size – The Size settings determine the size of the image you are adding to your site.
How to edit Image Attributes in an existing WordPress Post
You can always edit different image attributes such as the alignment of an image or alt/title/caption/description text of an image that already inserted in a post. Open the post in the post-write screen(follow step 1 on this page). Make sure that visual editor tab is selected. Click on the image you want to edit. You can see two icons over the image. The left icon (pencil Image) allows you to edit the image properties and the right icon (X Image) will delete the image from your content.
Click the edit image icon to edit the image properties. A pop-up window will appear and you can edit the various image properties there. The Edit Original button allows you to do some simple manipulations such as Crop, Rotate, Scale, and Flip Images. The Replace button allows you to replace the image entirely.
After making changes, click the Update button to save your changes. If you do not want to make any changes, click the small ‘x’ in the top-right of the pop-up window to close the pop-up.