background preloader

Wordpress

Facebook Twitter

How to create custom forms in WordPress without using plugins? Forms are an integral part of a website.

How to create custom forms in WordPress without using plugins?

While there are lots of wordpress plugins available to create custom forms, most of them are not up to the task. It is very easy to create a form in WordPress, provided you have a fair knowledge of php, html and js. Let me show you how it’s done. Front-end [HTML] > Open dashboard. > Create a new page. > Go to HTML mode. > Create a form just like this: > Specify the backend php script in the action attribute of the form tag. > Publish the page. Bravo! Form Validation [JS] > Include a javascript into the page which you’ve created. > Add a script tag: > Create a validation function: Back-end [PHP] > Create a new PHP file in your favourite text editor. > Get the submitted form elements: > Connect to your database: > Insert the form values into the database: > After the database is successfully updated, you need to redirect the user to a page with a success message(which I have assumed you have created via Dashboard).

That is it! The Loop. The Loop Languages: English • Français • Italiano • 日本語 • Português do Brasil • Русский • 中文(简体) • 中文(繁體) • (Add your language) The Loop is PHP code used by WordPress to display posts.

The Loop

Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post. When WordPress documentation says "This tag must be within The Loop", such as for specific Template Tags or plugins, the tag will be repeated for each post. You can display other information about each post using the appropriate Template Tags or (for advanced users) by accessing the $post variable, which is set with the current post's information while The Loop is running. For a beginner's look at The Loop, see The Loop in Action. Using the Loop The Loop should be placed in index.php and in any other Templates used to display post information. The loop starts here: Custom Query Shortcode: Run a Loop inside Any Post/Page.

I had the occasion yesterday to have a page with a section on it where it would output a very specific set of other pages, which would need to change dynamically.

Custom Query Shortcode: Run a Loop inside Any Post/Page

What I could have done is built a special page template for this page, and inside that template run a query_posts() to get these posts. But I wanted this page to remain editable from the admin. Besides, creating a special page template every time you need to do something like this is too cumbersome. Mastering Conditional Statements and Tags for Tweaking WordPress Blogs. The conditional statements feature is an extremely useful and powerful feature in WordPress; still it remains unused in the development process.

Mastering Conditional Statements and Tags for Tweaking WordPress Blogs

You can achieve many things by the simple and smart use of these statements. Sometimes when you need specific text or a unique image to appear on a specific page and not on any other pages in your site, by using conditional statements along with WordPress conditional tags you can achieve this easily without creating multiple pages or templates. Introduction to WordPress conditional tags. WordPress comes with something called conditional tags, which let’s you change how content is displayed depending on what conditions that are met.

Introduction to WordPress conditional tags

For example, you can check if the user is on the frontpage, or if she is logged in or not. in this article we’ll go through how to use these conditional tags, and how they work. If you are familiar to PHP, this will be a walk in the park. Otherwise, dont worry, I’ll show you how it works. PHP if(statements) Editor Styles for Custom Post Types in WordPress 3.0. I’ve had some fun playing around with the recently released WordPress 3.0, Beta 1.

Editor Styles for Custom Post Types in WordPress 3.0

One of my new favorite additions is the add_editor_style() which allows you to assign a CSS file for the TinyMCE when editing posts, pages and the new custom post types. This is very handy to get closer to a WYSIWYG experience in WordPress’ editor and not having to preview the posts all the times while writing, to check where line breaks end up and so on (if you care about those things). I’m also loving the new Custom Post Types, and on one of my sites, I have setup a few different post types.

On the frontend I have different widths for posts, pages and my new WordPress 3.0 custom post type ‘portfolio. I wanted to reflect the different widths in my admin editor style sheet as well. Which sets the width for the editor. The code I end up with adding to my functions.php file looks something like this. That’s it folks, cheers! How to Float WordPress Admin Menu and Make it Sticky. Dont like to scroll for admin menu in WordPress Dashboard ?

How to Float WordPress Admin Menu and Make it Sticky

Then Float Admin Menu and save scrolling time by installing this free plugin or by using the code. Plugins and Resources for Improving User Interactivity with Wordpress. If there is a sense of community and vibrant life surrounding a blog it tends to be successful and ultimately popular – that is a fact.

Plugins and Resources for Improving User Interactivity with Wordpress

So, if you own a WordPress blog and you are looking for an effective way to create a real sense of user interactivity on your blog, in this post, I highlight some fantastic plug-ins and resources, that you may not know about, that can be of great help in creating a sense of involvement amongst your blog visitors. Make Your Site Social The Gigya Social optimization plug-in aggregates authentication and social APIs from Facebook, Twitter, Google, Microsoft, Yahoo, LinkedIn, AOL and other OAuth & OpenID providers, giving sites the ability to authenticate users via social network and OpenID providers and increase site traffic by allowing users to easily share content with their friends and followers.

The plug-in is scalable and secure, using a standard authentication techniques to prevent account spoofing. How to Create a Custom Options Page in Wordpress. One thing that seems to define technology is that users like both ease of use and the ability to customize the appearance of everything they use.

How to Create a Custom Options Page in Wordpress

Custom preferences pages within the WordPress are the best way to combine these interests. They’re as easy to use as any other control panel page within the Dashboard, but they’re advanced and flexible enough to allow the user to control every detail of their installed theme, at least as long as the ability has been defined as a user-customizable setting. When users can make their own edits without extensive coding, they do the developer a service by showcasing their work for longer periods and by helping the theme to take on a life of its own and become almost a form of public art.

Here’s how to create a theme options page within the functions.php file. Step 1: Open the functions.php File Step 2: Defining Variables for Use Within the Preferences Page. Parse RSS Feeds as Content in WordPress. What most people do not know, is that WordPress is also quite capable of pulling in RSS content from outside blogs and parsing it for display within one of its many template files.

Parse RSS Feeds as Content in WordPress

This functionality is probably not as well known because it is simply not as old and as established as the software’s production of feeds. Included only since version 2.7, the ability to parse RSS feeds as content and include that information into a template file is relatively new and its parameters are largely unknown even among the more advanced members of the WordPress development community at large. Luckily, these parameters are easy to learn and customize, and they can turn a simple RSS feed into a great source of extra content and discussion on already-busy WordPress blogs. Not only can RSS feeds be parsed by WordPress, but they can also be split up into columns and tabs. Step 1: Utilize the Built-in Parsing Function to Pull the Feed in and Turn its XML into Content.

Optimization/Cheat Sheet. Languages: English • 日本語 • (Add your language) WordPress Optimization/Cheat Sheet This article is part of a series on WordPress Optimization This is a quick list of the key areas in which WordPress can be optimized. The biggest gain for the least effort comes from caching. Server Optimization DNS onto a separate server Web Server optimization PHP acceleration / optimization MySQL tweaking (query cache, etc) WordPress Performance Remove unused plugins Optimize plugins Optimize themes, hardcode static vars, etc Offloading Offload static files to separate server Optimized web servers like publicfile, lighttpd, etc Offload feed traffic Caching WordPress caching (application level) Browser caching (client side) Web server caching (server side) Adding Database Servers.

Postline, A Theme Inspired by Facebook's Timeline. 28 Aug 2012 Are you a big fan of Facebook's Timeline feature? You're going to love our newest theme, Postline (view demo), a responsive theme with infinite scroll inspired by Timeline. It is designed to capture different types of post formats like quotes, videos, images, galleries, and many more, allowing you to tell your story on any resolution, whether desktop or mobile device. In addition, Postline is built with infinite scrolling, meaning posts are loaded automatically when you hit the bottom of the page. This theme is perfect for bloggers who want to showcase their photos and videos that are time-sensitive like travel or food photos! Wordpress Content Slider Plugins: 9 User-Friendly Examples. Featured sliders are all the rage right now, because they provide an easy way to showcase your best content and keep keep your visitors interested with instantly changing images.

When searching for a plugin to handle your site’s featured content and/or images, it can be completely overwhelming, given the vast number available. Who knows which are any good? I want to save you an hour of research with this post. Goodbye, headaches. Hello, menus! As a theme developer, most of the support questions I get are about configuring menus. If you’re also a theme developer, you have probably run into the same questions I have.

The trouble is that a large majority of users want custom menus and no two menus are the same. There are tons of plugins that fix this problem in their own way. Even some theme developers have integrated menus systems into their themes. Unfortunately, all of these solutions are different. In this tutorial, I’ll walk you through the features of the new system and how to build this into your theme if you’re a developer. What the menu system offers. Wordpress jQuery dropdown menu tutorial. See a more recent article about how to integrate the Twitter Bootstrap dropdown menu with WordPress here The motivation for this article was to create a set of notes for myself to speed up the process of creating a WordPress drop down menu with jQuery, as I found myself needing to add this functionality to most projects.

I decided to turn it into a tutorial and share it with the world. If you have any issues or if you have a more efficient way of achieving the same end result, I'd love to hear from you. Step 1: Register the menu in functions.php Add the code to your functions.php file where 'primary' is the theme_location used in your template file and 'Header Navigation' is the description appearing in the Appearance > Menus section of your WordPress back end. Useful WordPress Tools, Themes and Plugins. 20 Useful WordPress PopUp Plugin Collection. How to Show a Popup on Specific WordPress Posts or Pages. How to Code an Awesome Categories Menu for Your WordPress Site. How To Customize The WordPress Admin Easily. Advertisement In this article, we take a break from some of the more advanced ways to customize WordPress, and share some super-easy customization techniques for the WordPress Admin area.

Using Custom Post Types to Create a Killer Portfolio. Quite possibly the best addition to WordPress 3.0 was that of Custom Post Types. Part 3: Custom Fields vs Custom Post Types vs Custom Taxonomies. Using Custom Post Types to Create a Killer Portfolio. Browser Support. The Best Way to Track "Not Found" 404 Errors in a WordPress Site. So, you want to know about every 404 on your site. There are plugins that do this, but they all suffer from one fatal problem. Plugins such as these all fail: The Problem with These Plugins They fail because tracking pageviews is not easy.

Web pages are not only accessed by human users. But you only want to know about 404 errors from visitors that matter — namely: humans and reputable search engines. The 404 Tracking Method That Works On the other hand, Google Analytics knows who’s junk and who’s real. This report tells you the exact landing 404 page and who the referrer was — so it’s pretty useful. WordPress theme - The Anatomy, an Infographic. How To Migrate Your Locally Developed Wordpress Site To A Live Server. Requirements I’m going to assume that you already have a local server running, and are able to both access the files as well as the database through PHPMyAdmin. You’ll also need to already have a hosting account set up and domain name associated with it – we won’t be covering that today. How to Sync A Local And Remote WordPress Blog. WordPress: Manual Uninstall of W3 Total Cache.

An Outstanding Collection of Resources for WordPress Content Sliders. WordPress Support – The 10 Best Sites to Get WordPress Help. E Plugins { Advanced Custom Fields. WordPress Custom Fields 101: Tips, Tricks, and Hacks. Turn your blog into anything: 13 unusual uses for WordPress. WordPress Consultant: Judith Kallos, At Your Service... How To Tutorials. 10 incredibly cool WordPress shortcodes.

25 Free Premium WordPress Themes For Portfolio Websites. 30 Grid-Based WordPress Themes. 80+ Best WordPress Magazine Themes. Recent Posts With Thumbnails In Wordpress Without A Plugin. Custom post types in WordPress. How to Set Up Custom Wordpress Category Templates in Four Easy Steps. 10 WordPress Hacks to Make your Life even Easier. Top 50 WordPress Plugins for 2011 to Zoom SEO, SMO & Audience Engagement. WordPress Support – The 10 Best Sites to Get WordPress Help. 34 Free WordPress Theme Frameworks and Starter Themes (With A Comparison Chart) 15 Most Downloaded Free Minimal Wordpress Themes. 40 Stylish, Minimal and Clean Free Wordpress Themes. 10 Blank/Naked Wordpress Themes Perfect for Development. Rapidly create sites with HTML5 Boilerplate and Blueprint CSS or 960.gs.

How To Build A Media Site On WordPress (Part 1) - Smashing WordPress. 10 Wordpress Plugins to Add Ratings and Polls to your blog. 14 Essential Wordpress Development and Design Cheat Sheets. 24 Stable WordPress Plugins For A Better Publishing Experience. 10 Best Twitter Tools, Plugins, Widgets for Wordpress Blogs. 20 Best WordPress Slider Plugin Collection. Top WordPress Plugins Every Blog Should Have. How to Use Wordpress Post Types and Taxonomies. How to Use Wordpress Conditional Statements - How To's Article by Addicott Web, Chicago, IL and Raleigh, NC Wordpress Website Design. Digging into WordPress. Different single post template per category wordpress - Nilesh Shiragave PHP. WPSeek.com - A WordPress-centric search engine for devs and theme authors.

10 super useful WordPress shortcodes. The 15 Best WordPress Plugins to Use in 2011. 5 Tools for Managing Multiple WordPress Sites from One Location. Import and Display RSS Feeds in WordPress. 15+ WordPress Menu Plugins For Better Navigation. Slick Social "Side-Out" Buttons in WordPress.