Wednesday, January 28, 2015

How To Create WordPress Custom Fields Without Plugins

WordPress has made it easy for developers to customize WordPress in so many ways to meet their custom needs, including letting developers assign new meta-data within a post. That way developer can display additional outcomes within their themes or plugins on top of standard data like the post title, post content, and post author.

There are several methods to create custom meta, you can use a plugin or work on top of a framework, or you can do it from scratch. In this post, we’ll look into how to create custom meta from scratch (it isn’t as hard as you’d think) and use it to display a sponsored post message.

Adding A Custom Meta Data

First of all, go to the post editor. Usually you can find regular input fields like the title, the content, the category, and the tag box there. There are a few hidden fields as well, including a Custom Fields Editor, which we can use to add our custom meta.
To display it, click the Screen Options and tick the Custom Fields option.



The Custom Field box should now appear at the bottom of the post content editor. Now, we can add our custom meta-data.
A single meta-data is handled with key name/value pairs. Hence, as you can see below, the Custom Fields box consist of two input fields: name and value.




In this following example, I will specify a new meta-data for the post that I’m currently editing, with hello_world as the key and Hello World as the value.

Click the Add Custom Field to add them in the post. You can later update or delete this meta-data. Also, as you have entered a key name before, WordPress will store and list the name in a dropdown option, so that you can reuse the key without having to type it all over again.





Retrieving The Meta Data

Having the meta-data set, you can now display your theme single.php file, which is the file to display single post content. You can call out the value from hello_world key using theget_post_meta() function. like so.

  1. <?php
  2. $meta = get_post_meta( get_the_ID(), 'hello_world' );
  3. echo $meta;
  4. ?>
  5. <?php the_content(); ?>
But keep in mind that this meta-data won’t be available in all post, so we will have to run this function within a conditional statement; in other words, we should call this function only when the meta-data is set in the post, otherwise it will return an error.

  1. <?php
  2. $meta = get_post_meta( get_the_ID(), 'hello_world' );
  3. if( !empty($meta) ) {
  4. echo $meta[0];
  5. }
  6. ?>

Given the above code snippet, you should see the Hello World! of the key value displayed above the post content.


Friday, January 9, 2015

WordPress Developers India



Silicon Valley having an experience of working in WordPress Web development as we have professional WordPress developers in India.Wordpress Development Company, Wordpress Development India, Wordpress Development Services, Wordpress Customization Services, Wordpress Development Solutions, Open source Wordpress Development.

Wordpress Template Design India

It is easy use and easy for Wordpress Customization Templates and gives you the platform to develop Wordpress Plugins as per your requirement. You can get the Wordpress Templates for free and can integrate by your own without the help of Wordpress Programmer. Silicon Valley has Wordpress Template Developer who will create and implement stunning Wordpress Templates tailored to your needs and reflecting your business integrity.

Wordpress Theme Design India

Silicon Valley handles the outsource work by providing the service of Wordpress theme development from last so many years according to your taste we design fully customize theme to make appealing design for your business. Our rates for wordpress theme customization development are very affordable prices and we integrate into your Wordpress blog and Wordpress Website Development. A Wordpress Theme is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog. WordPress Development India enjoys Web 2.0 style.

Wordpress Plugin Development India

Silicon Valley has equipped with a team of wordpress developers for plugin development in India who is responsible to create rich and high end wordpress plugin development. It is easy to modify, enhance or customization of WordPress Plugins for WordPress website or blog. Using Plugins one can add functionality without modifying the core programming structure of wordpress. A WordPress Plugin is set of functionalities written in the PHP scripting language that adds a specific set of features to the WordPress website. Providing any add-on features in wordpress site is also known as plugins.

Wordpress Customization Services

Wordpress customization gives you the flexibility to modify the site according to your business requirement by providing Wordpress custom templates and custom theme design. Our Wordpress Theme Design is at economical cost which helps you to make customization according to your ideas. Outsource at Silicon Valley gives you Wordpress customization to power everything from simple, personal homepages to difficult corporate web applications and in making robust dynamic applications including Ecommerce storefronts, RSS feeds, Blogging, Community Portals, Interactive Image Galleries, Corporate websites, E-Magazines & Polls integration etc. Our Wordpress Web designers are highly qualified to create your design to make your different identity.

Wordpress Programming India

Wordpress is most popular open source software for blog publishing application and for Wordpress website Development. It facilitates the system in which you can include widgets where in you will get the feature of rearranging without editing HTML/PHP code. It is publishing platform which is aimed for usability and for web standards. We established latest techniques with Wordpress Programming services. WordpressDevelopment support PHP Programming language and it uses the database system of MySQL to store the information. It is most popular for SEO as its carry more than 1200 SEO plugins in Open source Development At Silicon Valley, Our main approach is to understand the business concept of client and meet them by applying web based software solutions.

Benefits of Wordpress Programming

  1. WordPress Development has excellent maintenance and security tools.

  • Simple to make your own theme or customize a present one.
  • As it is free, it supports multiple languages and have amazing feature on same it is SEO friendly as well.
  • The power of Wordpress programming enables the thousands of developer through its application architecture across the globe to create powerful add-ons, components and Wordpress plugins to this powerful Content Management System.
  • The best part in Wordpress is, it is easy to add or change the content, images, multimedia and its organizing and managing important data that to without the Wordpress Programmer.

Wordpress web Development India

Silicon Valley having an experience of working in Wordpress Web Development as we have professional Wordpress Developers who had almost worked in all the industries according to the client needs by providing Wordpress Customization and developing the Wordpress Plugins. Outsource at Silicon Valley for Wordpress development gives you the flexibility to hire Wordpress programmer who will work on your custom requirement to meet your business ideas. We have expert team of Wordpress web Developers which delivers high end Wordpress customization for developing successfully mid-to-large scale content managed websites.

Outsource Wordpress Web Development India

Silicon Valley has a wide experience in developing IT outsourcing Projects with its location in India. We are experts in outsource Wordpress Web Design, Outsource Wordpress Web Development, PHP Programming India, Wordpress Web Programming Service, Wordpress Customization, and much more.
India being an IT outsourcing Hub gives you the best ranges of PHP programming services. Outsourcing your PHP projects to India has many benefits.
Android App Developers India