Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

Monday, 31 July 2017

How To Embed YouTube Videos In WordPress

How To Embed YouTube Videos In WordPress

Do you realize that the quantity of individuals who devour video content has expanded fundamentally in the previous 2 years? This is to a great extent because of expanded cell phone utilization and enhanced web speeds.

In any case, despite the fact that it's simpler than any time in recent memory to install recordings from destinations like YouTube and Vimeo, numerous novice bloggers don't know about how to do it.
In this instructional exercise, I will demonstrate to you generally accepted methods to insert YouTube recordings in your WordPress articles.

Yet, before we get into that, we should comprehend why you ought to implant recordings into your blog entries.


Blog entries with recordings will: 


  • Give perusers a superior comprehension of the point.
  • Enable perusers to invest more energy in your site. 
  • Make your articles more media rich (and more streamlined for SEO). 

What's more, if it's your own YouTube video, you will: 


  • Get more perspectives, offers, and endorsers. 
  • Win more cash with AdSense for YouTube. 


There are numerous more points of interest, however thinking about these is a decent place to begin.

At whatever point I work with another creator or am counseling an organization on WordPress, a standout among the most well-known inquiries that I get asked is:

All things considered, in the event that you have never implanted a video into a blog entry earlier (don't get mistook for "installed" as it just means including a video from YouTube), this convenient guide will enable you to take in a couple of WordPress video traps.

Step by step instructions to Embed A YouTube Video in WordPress 


Including a YouTube video in a WordPress blog entry is simple.

You don't have to download the video and transfer it to WordPress in light of the fact that WordPress underpins auto-installing for YouTube and other well known video facilitating and social locales (Ted, Facebook, Vimeo, WordPress.tv, Instagram, and numerous others).

What auto-insert implies is that you should simply glue the URL of the video in plain content organization and WordPress will naturally put the video into the post.


Give me a chance to demonstrate to you best practices: 


  • Go to the YouTube video that you wish to install. 
  • Tap on Share and duplicate the URL.

How To Embed YouTube Videos In WordPress

Presently glue the URL into your WordPress post editorial manager (it ought not be hyperlinked). WordPress will naturally render the video and install it into the post. 

The YouTube video will now show up in your article. 


Including YouTube Video Using An Embed Code: 


When you need to include a YouTube video into your blog entry, the above technique is quickest. 

Notwithstanding, now and again you might need to add video to different parts of your blog, similar to the gadget territory where auto-implanting is impossible. 

Here you can utilize the (non-auto) install highlight of YouTube to get the insert code. 

  • Go to the YouTube video
  • Tap on Share
  • Tap on Embed
Here you can control the measure of the video player, you can debilitate indicating related recordings, and you can do a couple of different things like evacuating the YouTube control catch.

How To Embed YouTube Videos In WordPress


When you have arranged the settings, essentially glue the install code in the gadget segment you need to include. 

What's more, that is it! 

Implant YouTube Videos On WordPress 


Including video is helpful for enhancing your articles. Utilizing the auto-implant technique for WordPress to indicate YouTube video in an article is the quickest and least demanding strategy for doing this. 

You can take in somewhat more about inserting in WordPress by perusing this official help page. 

So simply ahead and implant a YouTube video in your next WordPress article!

Saturday, 18 February 2017

Top 40 WordPress Interview Questions & Answers

Top 40 WordPress Interview Questions & Answers


1) What is WordPress?

Word press is a best Open Source CMS which allows it to be used free of cost.  You can use it on any kind of personal or commercial website without have to pay a single penny for it. It is built on PHP/MySQL (which is again Open Source) and licensed under GPL.


2) How safe is website on WordPress?

 The word press is safe to operate but still it is suggested to keep updating with the latest version of WordPress to avoid hacking.


3) Are there any limitations to a WordPress web site?

You can use WordPress for e-commerce sites, membership sites, photo galleries and any other type of site you can think of. The web site is created using the same html code as any other site so there are no limitations there either.


4) Do you need to have a blog in order to use WordPress for site?

WordPress was originally used as blogging software though it has since become popular for website also.  It is not necessary to have a blog to use wordpress.  Still having blog is commendable as it will help in search engine optimization.


5) From SEO point of view is wordpress helpful? Will it show the website on Google?

 It is one of the benefit of using wordpress, it has inbuilt SEO search engine. Also, you can have an additional plug-in in wordpress to help with SEO and rank on a popular search engine like Google.


6) What is the current version of wordpress?

You need to quote the current version of WordPress available in market along with the release date.


7) What are the types of hooks in WordPress and mention their functions?

There are two types of hooks 1) Action hooks 2) Filter hooks

Hooks allow user to create WordPress theme or plugin with shortcode without changing the original files. Action hooks allow you to insert an additional code from an outside resource, whereas, Filter hooks will only allow you to add a content or text at the end of the post.


8) What do you mean by custom field in wordpress?

Custom field is a meta-data that allows you to store arbitrary information to the wordpress post. Through custom field extra information can be added to the post.


9) What are the positive aspects of wordpress?

Few positive aspects of wordpress are

  • Easy installation and upgrade
  • In-built SEO engine
  • Easy theme system
  • Flexibility
  • Multilingual- available in more than 70 languages
  • Own data- no unwanted advert on your website
  • Flexibility and Easy publishing option


10) What are the rules that you have to follow for wordpress plugin development?

  • Create a unique name
  • Create the plugin’s folder
  • Create a sub-folder for PHP files,  translations and assets
  • Create the main plug-in file and fill in header information
  • Create activation and de-activation functions
  • Create an uninstall script
  • Create a readme.txt file
  • To detect paths to plugin file use proper constants and functions


11) What is the prefix of wordpress tables by default?

By default, wp_ is the prefix for wordpress.


12) Why does WordPress use MySQL?

MySQL is widely available database server and is extremely fast.  It is an open source and it is available at no cost also it is supported by many low-cost Linux hosts so its easy for anyone to host their website.


13) Is it possible to rename the WordPress folder?

Yes, it is possible to rename the WordPress folder.  If WordPress is already installed you have to login to the weblog as the administrator and then change the settings

WordPress address (URI)  :

Blog address( URI) :

After making the changes, you can rename the folder or directory with the WordPress file in it.


14) How many tables are there in WordPress by default?

There are about 11 tables in WordPress by default. Note: With succeeding releases of WordPress this number will change. You need to check phpMyAdmin to determine the number of tables in a vanilla version of latest WordPress installation.


15) What is WordPress loop?

To display post WordPress use PHP code, this code is known as loop.


16) How you can disable the WordPress comment?

If you go on dashboard under options-discussion there is a comment “ Allow people to post comment” try unchecking the comment.


17) What are the steps you can take if your WordPress file is hacked?

  • Install security plug-ins like WP security
  • Re-install the latest version of WordPress
  • Change password and user-ids for all your users
  • Check your themes and plug-ins are up to date


18) What are the template tags in WordPress?

In WordPress template tags is a code that instructs WordPress to “do” or “get” something.


19) Does WordPress have cookies?

Yes, WordPress have cookies and WordPress uses cookies for verification of users while logged in.


20) In what case you don’t see plugin menu?

You can’t see your plugin menu when the blog is hosted on free wordpress.com as you cannot add plugin there.  Also, if you do not have an account of an administrator level on your WordPress is not possible to see plugin.


21)  At what instance you get locked out of your WordPress admin and see your website as a blank screen?

This would likely happen when you have pasted a code from a website with wrong formats, also when you have pasted a code in a wrong location. It may also happen when your IP is banned


22) Why you use a static front page in wordpress?

Some WordPress users wants their WordPress installation to be more than a blog site. To give their page a look more like a real website page some users use static front page.


23) What are the plugins you can use to create contact form in WordPress?

To create a contact form in WordPress you can use plugin like Gravity forms or also you can use a free plugin contact form 7.


24) Why widget does not show up in the sidebar?

While using widget you have to ensure whether your theme supports the widget and if it does then it must show the sidebar.  If in any case if it happens that you don’t see the sidebar then it might be missing the “function.php” file or file similar to that.  This can also happen if you have forgot to save the changes in the widget or refreshing the older display of the page.


25) Is there any limitation for using WordPress?

No, there is no limitation for using WordPress.  WordPress can be used for innumerable purpose membership site, e-commerce site, photo-gallery and many more.


26) How is creating a site on wordpress.org different from wordpress.com?

Most of the things are similar in both except the choices of themes and the usage of plugins.


27) Why wordpress.com is considered more secure than wordpress.org?

WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugin’s.  However the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.


28) Does de-activated plugins slow down a WordPress site?

No, de-activated plugins cannot slow down the WordPress site.  Wordpress only loads the active plugins and ignores everything else.


29) In what case we cannot recommend WordPress to our client?

We cannot recommend WordPress on following situation:


  • If client is working on non-CMS base project
  • If site wants complex or innovative e-commerce
  • In case of enterprise intranet solution
  • Sites requiring custom scripting solutions.



30) What are the essential features you look for a theme?

Theme selection differs according to the requirement, but an ideal theme would be something that would not restrict to use the number of pages, plugins or static homepage.


31) How Custom theme is different than Normal theme?

Custom theme allows for SEO search, but with a SEO plugin available it would not make much difference to normal theme. One benefit using the Custom theme is that it allows to make the changes without going much into the coding part.


32) How you can create a static page with WordPress?

To create a static page in wordpress, in the page section  you have to upload a php files to the server in the theme folder, and then select that as your template.  This allows you to add any page and look that you wanted for your blog and it will remain static.


33) Is there any other CMS better WordPress?

WordPress is no doubt a good CMS, but Drupal and Joomla are among the best CMS you can work with.


34) Which is the best multi-lingual plugin for wordpress?

Keeping all the limitations in mind, WPML would be the best multi-lingual plugin for wordpress .


35) Can you update your own content on the site?

It depends on the type of the site or project, but yes one can update their own content on the site.


36) What are meta-tags?

Meta-tags are keywords and description used to display website or page information.


37) What should one use for plugin development — custom post types or custom database tables?

There is no specific preference for plugin development; it depends on what type of plugin’s one has to develop. Though few recommend custom post type, as it has few benefits comparison to custom database table.


38) Can you host WordPress using  Amazon web services such as EC2, RDS, EBS etc?

Yes, you can host using Amazon web services.


39) Is there any way to write series in WordPress?

You can use organize series plugin to write series in wordpress.


40) What are the reasons why one should not hack WordPress core file?

The best reason not to hack the core files is that whatever you might be doing has to be reworked as a patch.

Friday, 17 February 2017

WordPress - Interview Questions

WordPress - Interview Questions


WordPress Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of WordPress. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answer −

Question :- What is WordPress?

WordPress is an open source Content Management System (CMS), which allows the users to build dynamic websites and blog.

Question :- List some features of WordPress?

The features of WordPress are −

  • User Management
  • Media Management
  • Theme System
  • Extend with Plugins
  • Search Engine Optimized
  • Multilingual
  • Importers


Question :- What are disadvantages of WordPress?

The disadvantages of WordPress are −

  • Using several plugins can make website heavy to load and run.
  • PHP knowledge is required to do modification or changes in the WordPress website.


Sometimes software needs to be updated to keep the WordPress up to date with the current browsers and mobile devices. Updating of WordPress version leads to loss of data so it requires the backup copy of website.

Modifying and formatting the graphic images and tables is difficult.


Question :- What are the different types of gadgets present in the WordPress Dashboard?

The different types of gadgets present in the WordPress Dashboard are −

  • Dashboard Menu
  • Screen Options
  • Welcome
  • Quick Draft
  • WordPress News
  • Activity
  • At a Glance


Question :- What is the use of Quick Draft section in WordPress Dashboard?

The Quick Draft is a mini post editor allows writing, saving and publishing post from admin dashboard. It includes the title for the draft, some notes about your draft and save it as a Draft.


Question :- What is the use of WordPress News in WordPress Dashboard?

The WordPress News widget displays the latest news such as latest software version, updates, alerts, news regarding the software etc from the official WordPress blog.


Question :- What is At a glance in WordPress Dashboard?

This section gives overview of your blog's posts, number of published posts and pages, number of comments. When you click on these links, you will be taken to the respective screen. It displays the current version of running WordPress along with currently running theme on the site.


Question :- What is the use of Media setting?

It is used to set the height and widths for the images which you're going to use into your website.


Question :- What is Activity Widget in WordPress Dashboard?

The Activity widget includes latest comments on your blog, recent posts and recently published posts. It allows you to unapprove or approve the comment, reply to the comment, editing the comment or you can delete the comment or move it to spam.


Question :- What is the use of WordPress General Setting?

WordPress general setting is used to set the basic configuration settings for your site.


Question :- What is WordPress Discussion setting?

WordPress discussion setting can be defined as the interaction between the blogger and your visitors. These settings are done by the admin to have a control over the posts/pages that come in through users.


Question :- What is WordPress Writing Setting?

The writing settings controls WordPress writing experience and provides options for customizing WordPress site. These settings control WordPress's features in the adding and editing posts, Pages, and Post Types, as well as the optional functions like Remote Publishing, Post via e-mail, and Update Services.


Question :- What is wordPress Category?

Category is used to indicate sections of your site and group related posts. It sorts the group content into different sections. It is a very convenient way to organize the posts.


Question :- What is wordPress Post?

Posts are also known as articles and sometimes referred as blogs or blog posts. These are used to popularize your blogs.


Question :- What is the use of Post via e-mail option in WordPress Writing Setting?

This option uses email address to create post for you and publishes posts on your blog by email. To use this, you'll need to set up a secret e-mail account with a POP3 access, and any mail received at this address will be posted.


Question :- What is Plugin setting?

Plugin allows easily modifying, customizing or enhancing wordPress blog or post. The wordPress Plugin is software that can be uploaded to expand the functionality of the site. They add services or features to wordPress blog.


Question :- What is WordPress Reading Setting?

Reading Setting is used to set the content related to the front page. Here you can set the number of post to be displayed on the main page.


Question :- What is Preview Post in wordPress?

Preview Post is to view the post before it is published to the user. It's safer to preview your post and verify how your post looks on website.


Question :-  What is Publish Post in wordPress?

Publish is used to make the post available to all the users wherein every user can view that particular post.


Question :- What is Media Library?

Media Library consists of the images, audios, videos and files that you can upload and add to the content when writing a Post or Page.


Question :- What is Grid View in Media Library?

It displays all images in the grid format.


Question :- How media files can be inserted into the Wordpress site?

Media files can be inserted to your Pages or Posts from libraries, from local storage or from URLs.


Question :- What are pages in wordPress?

Pages are static content and often do not change its displayed information.


Question :- What is Tag in wordPress?

Tag is small information attached to main content or post for the purpose of identification. It tells the visitors what actually the post is about. If the tag is mentioned properly then it helps to find the content very easily.


Question :- What is the use of Slug field in tags?

It is used to specify the tags URL.


Question :- What are link in WordPress?

Link is a connection from one resource to another. Adding links to your pages or blog posts helps you to connect to other pages.


Question :- What is a Moderate comment?

Comment moderation is a process where, when visitors comment on posts, the comment is not published directly until and unless it is approved by the admin to be posted. It manages your comments so that there is no comment spamming.


Question :- What is the use of adding comments?

Adding comments allows your visitors to have a discussion with you. Comments are approved by the admin and then posted to be discussed further.


Question :- What is the role of Contributor in WordPress?

Contributor can only write and edit their posts until published. They can create their own posts and pages but cannot publish them. They cannot upload images or files but can see your site's status. When they want to publish any post, it must be first notified personally to the administrator by the contributor to review. When the post is approved the contributor cannot make any changes once publishe


Question :- What is Theme Management in WordPress?

Themes make your websites display with modification. It includes image files, templates, css stylesheets etc that can help you to make your website look great.


Question :- What is Customize theme?

Customizing themes helps you to give a new look to your website. Here you can change background images/colors, add titles, and do much more.


Question :- What is Widget Management?

Widgets are small blocks that perform specific functions. These give design and structure control to the WordPress theme.


  • They help you add content and features.
  • They can be easily dragged and dropped in widget area.
  • Widgets vary theme to theme. They are not same for every theme.

Question :- Mention the steps to optimize your WordPress?

The steps to optimize the WordPress are −

  • High quality and meaningful content.
  • Have right names for images.
  • Use short permalinks that include keywords.
  • Optimized themes.
  • Sitemap in XML format.
  • Connect posts to social networks.
  • Beware of black hat techniques.
  • Delete your trash box.
  • Keep Checking Your Site Statistics
  • Keep checking your plugins.
  • Using CSS and JavaScript effectively.


Question :- What is the role of Editor in WordPress?

The Editor has access to all the posts, pages, comments, categories, tags, and links. They can create, publish, edit or delete any posts or pages.


Question :- What is the role of Follower in WordPress?

Follower can only read and comment on the posts. Followers are the ones who have signed in to your account to receive updates.


Question :- What is the role of Viewer in WordPress?

Viewers can only view your posts; they cannot edit but can only comment on the posts.


Question :- What is Media Management?

It is the tool for managing the media files and folder, in which you can easily upload, organize and manage your media files on your website.


Question :- What is Multilingual?

It allows translating all the content into the user choice languages.


Question :- What is User Management?

It allows managing the user information such as changing the role of the users to (subscriber, contributor, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.


Question :- Which is the PHP compatibility used for WordPress?

PHP 5.2+


Question :- What is Wordpress Dashboard?

The WordPress Dashboard is a first screen which will be seen when you log into the administration area of your blog which will display overview of the website. It is a collection of gadgets that provide information and give a glance overview of what's happening with your blog. You can customize your needs by using some quick links such as writing quick draft, replying to latest comment etc.


Question :- What is Page attribute module?

Page attributes module allows you to select parents for your particular page. You can also set order of the pages.


Question :- What is the use of WordPress Address field in General setting?

It is the URL of WordPress directory where your all core application files are present.


Question :- What is the use of Mail Server in WordPress Writing setting?

It allows reading the emails that you send to WordPress and stores them for retrieval. For this you need to have POP3 compatible mail server and it will have URI address such as mail.example.com, which you should enter here.


Question :- What are Importers?

It allows importing data in the form of posts. It imports custom files, comments, post pages and tags.


Question :- What is the use of Avatar field in Wordpress Discussion Setting?

Avatar is a small image that displays at the top-right-hand corner of the dashboard screen beside your name. It is like your profile picture.


Question :- What is WYSIWYG Editor?

WYSIWYG Editor is similar to a word processor interface where we can edit the contents of the article.


Question :- What is Permalink setting?

Permalink is a permanent link to a particular blog post or category. It allows setting the default permalink structure. These settings are used to add permalinks to your posts in Wordpress.


Question :- What is the use of Syndication feeds show the most recent field in WordPress Reading Settings?

The user can view the number of posts when they download one of the site feeds. By default, it is set as 10.


Question :- What is the use of Search Engine Visibility field in WordPress Reading settings?

It Discourage search engines from indexing this site, your site will be ignored by the search engine.

HTML APIs: What They Are And How To Design A Good One

As JavaScript developers, we regularly forget that not everybody has a similar data as USA. It’s referred to as the curse of knowledge:...