Connect with us

Design

Practical Tips From Top WordPress Pros

Published

on

Practical Tips From Top WordPress Pros Recently I shared with you some advice from the WordPress community to beginners. But what if starting out is already a dim memory? What if you’re already so immersed in the world of WordPress that you dream of Trac and you bore your partner with talk of your latest achievement with custom post types?

Below are some tips from WordPress pros from across the community. Many of the tips cover development, but there’s also advice on business, running your website and, of course, getting involved with the community.

Wordpress-start-image
Image: Phil Oakley

Tips For Developers

USE EVERYTHING WORDPRESS HAS TO OFFER

WordPress’ core can do a lot for you, without you having to write a bunch of code. WordPress is much more powerful when you make use of its APIs and built-in functionality. “If you use WordPress as your framework,” says Trent Lapinski, “it will enable you to focus on developing an innovative plugin or theme.”

Matty Cohen recommends always looking for and using functionality available within WordPress before creating a function from scratch. “Examples of this include, at the higher level, using the WordPress Settings API and, at the lower level, using themedia_handle_upload() function to upload your files, rather than a custom upload routine.” Matty gives an example of this with his WooSlider plugin. In order to create a familiar and consistent experience for WooThemes users, he did the following:

  • He used the Settings API for the settings screen.
  • He added a tab to the “Upload/Insert Media” popup for creating shortcodes. This interface uses a combination of the Settings API, custom form-creation logic, and some custom JavaScript to create the HTML output and the shortcode.

Screenshot of WooSlider settings
WooSlider uses built-in WordPress functionality to make the user experience better.

Making use of everything WordPress has to offer results in less coding for you and a better overall experience for users. But those aren’t the only benefits. Amy Hendrix points out that the code you write will be future-proof. Writing your own scripts could eventually result in conflicts.

USE HOOKS

Hooks are the means by which you hook into WordPress and add your own code without modifying core files. There are two types of hooks: actions and filters. Action hooks are places where you can insert and run code. Filters are used to manipulate output.

If you’re working with WordPress’ core and with plugins and themes, then you should be extending by making use of all of the hooks available. Adam Brown maintains a list of all of the hooks that have ever appeared in WordPress.

IMPLEMENT HOOKS

Create your own hooks. By implementing hooks in your plugins and themes, you create opportunities for other people to extend them and create add-ons. Shane Pearlmanbelieves that by doing so, you “encourage plugin developers to make opportunities for the community to extend and also use them.”

Not only does this create opportunities for other developers, but you make life easier for yourself. “With a ‘well-hooked’ theme or plugin,” says Simon Wheatley, “you can make adjustments between clients, or between sites on a multisite setup, a lot more easily than by effectively forking your own code for every scenario.”

WRITE SECURE CODE

If you write plugins or themes, keeping the code secure is critical. How bad would you feel if your code was responsible for websites getting hacked? Brad Williamsrecommends learning how data validation pertains to WordPress. A detailed page on data validation can be found in the Codex; so, if you’re a developer, you have no excuse for writing insecure WordPress plugins and themes. Following the guidelines will ensure that your code is safe and secure from exploits and hacks. As Ryan Hellyer points out, “Having a beautiful website which does exactly what a client requires is great, but it’s not so great when it gets injected with spam links and is de-indexed from search engines!”

FOLLOW BEST PRACTICES

Ryan Duff and Brad Williams highlight some best practices that developers should stick to:

  • Make sure the data that you’re passing is always being passed in the way it’s expected to. Setting a variable on an incorrect line could result in a trickle-down effect of error messages.
  • WordPress has coding standards, so stick to them. This will keep your code in a format that all WordPress developers will recognize, making bug tracking much easier!

EMBRACE THE CODE BASE

Both Helen Hou-Sandi and Jake Goldman of 10up recommend that you spend time looking at the code base. As Jake points out, “Relying on the Codex and Google searches for solving unique problems with WordPress is like trying to tune a car’s performance without ever looking under the hood.” Rachel Baker also suggests looking at the change logs, and Silviu-Cristian Burcă points us to his advice in “How to Become a WordPress Guru.”

A good integrated development environment (IDE) for PHP — such as NetBeans, PhpStorm, phpDesigner or Vanilla Eclipse — will offer code auto-completion for WordPress functions and their arguments and will display documentation on functions inline. You’ll be able to easily jump to function and class declarations to study them. “Think the core code base is too scary?” asks Jake. “Pick a file in wp-includes and start reading — you might be surprised by how approachable it is, and how much you can learn.”

Looking at the code, as Helen adds, also increases the likelihood that you’ll find a way to contribute code to the WordPress project. You’ll also become familiar with plugins and themes, understand how people do things properly, and recognize when they get it wrong.

SHARE YOUR CODE

It’s in the nature of code in an open-source project to be shared, forked and iterated on. If you’re working on solutions, then share them with the community. “Share and publish your solutions, as a plugin, widget or theme,” says Cátia Kitahara. “Not for every project, but with most of them, we end up with a solution that could be of use to many others. So, do it as a way of giving back to the community. I know it takes time to prepare something to be distributed through the repositories, but remember the time WordPress saves for us!”

You could put your code on GitHub, which Ben Balter recommends:

“GitHub’s got a very different culture, and the ability for anyone to submit a pull request is a real game changer. It really lowers the barrier to contribute, and democratizes the entire plugin authoring experience. As a bonus, use GitHub’s built-in wiki functionality to maintain your plugin’s documentation (especially FAQ), so that anyone, even non-technical users, can contribute.

Lastly, if you have plugin tests, integrate with Travis CI so that you can automatically test pull requests before merging. To help you get started, a handful of tools are out there, such as GitHub → WordPress.org deployment scripts and GitHub wiki → WordPress readme converters.”

Eric Mann points out that if you’ve built your project in isolation, then you’re likely missing out on different approaches. Sharing your code with people gives them the opportunity to point out how it can be improved. WordPress itself is built collaboratively and is the result of hundreds of minds looking at it from different perspectives. If you want your code to excel, you should be sharing it, too.

USE CUSTOM POST TYPES

Taking advantage of custom post types for specific use cases is a great way to leverage WordPress. At the Theme Foundry, Drew Strojny has three custom post types: themes, stories and tutorials. This enables members of his team to quickly find and create content.

Drew recommends making custom post types even more flexible by adding custom meta data. This enables you to style your content and provides opportunities to reuse that meta data across your website. He provides the example of the meta data he uses with the “Story” post type in use on his “Customer Stories” page.

from : http://www.smashingmagazine.com/2013/03/20/practical-tips-top-wordpress-pros/

[quote font=”verdana” font_size=”14″ font_style=”italic” color=”#474747″ bgcolor=”#F5F5F5″ bcolor=”#dd9933″ arrow=”yes” align=”centre”]This Demo Content Brought to you by Momizat Team [/quote]

this is tags and keywords : wordpress themes momizat Tutorial wordpress templates

Continue Reading
Advertisement
Click to comment

Leave a Reply

Design

Post Gallery in wordpress themes by momizat team

Published

on

Post Gallery in WordPress themes is the most used and popular blogging platform around the web. Its flexibility, usability and customizability are the main reasons people regard WordPress so high. Another reason is the huge array of themes available for WordPress – you can create almost anything, from online magazines to advanced e-commerce businesses. wordpress themes You can either get themes for free or pay for them. Of course, you get what you pay for — yet don’t be too eager to spend your money on something you might not even need. If you’re just starting out with WordPress I suggest reading Choosing a WordPress Theme: Free or Premium? After that you might consider whether you really want to pay for that premium theme. wordpress themes If the answer is no, continue reading and check out these 80 professional, beautiful and free WordPress themes from 2012 — the best free themes that can be found!

Vestibulum sit amet ante eget diam scelerisque eleifend. Nam metus mauris, cursus non suscipit ut, faucibus ut quam. Quisque ac scelerisque dolor. Nam sapien leo, euismod id elementum ut, dapibus eget elit. Nunc posuere porttitor nulla facilisis congue. Maecenas molestie quam eu nibh porttitor, vitae vestibulum turpis molestie. Sed quis mauris vitae dolor imperdiet pharetra. Sed et eros eget sapien tempor cursus sit amet eget eros. Nunc a mauris imperdiet, scelerisque diam laoreet, consequat nibh. Morbi gravida ornare sem, aliquet vehicula augue egestas eget. Sed mollis fringilla enim, ac accumsan metus porta et. Fusce ut lacinia ante, et pretium velit. Nullam eget metus enim. Vestibulum mollis leo in nulla tristique, sit amet tincidunt nibh tincidunt. Cras at sem at leo pretium bibendum et at nisl. Pellentesque odio enim, consectetur vitae commodo non, facilisis tincidunt justo.

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • Curabitur suscipit elit vel quam mattis laoreet.
  • Duis non diam ut nulla sollicitudin porta.
  1. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  2. Curabitur suscipit elit vel quam mattis laoreet.
  3. Duis non diam ut nulla sollicitudin porta.

Duis tortor metus, accumsan in elit eget, porttitor sollicitudin ante. Sed in nunc sem. Ut tincidunt libero sed tortor vulputate, sit amet interdum urna eleifend. Ut porta justo a mauris aliquam tincidunt. Maecenas faucibus ultrices mauris ac lacinia. Maecenas eget urna leo. Maecenas congue mauris erat, in eleifend ante eleifend quis. In quis leo sit amet nibh imperdiet dignissim. Morbi malesuada luctus tortor, id cursus diam venenatis non. Nulla sit amet dui metus. Ut at interdum ipsum, ac ornare lacus. Etiam rutrum magna diam, sed luctus risus consectetur at. Vestibulum sodales purus eget consectetur tincidunt. Praesent augue nisl, consectetur a leo vel, vehicula dapibus nibh.

[quote font=”verdana” font_size=”14″ font_style=”italic” color=”#474747″ bgcolor=”#F5F5F5″ bcolor=”#dd9933″ arrow=”yes” align=”centre”]This Demo Content Brought to you by Momizat Team [/quote]

this is tags and keywords : wordpress themes momizat Tutorial wordpress templates

 

Continue Reading

Design

The Curious Case of Specialty WordPress Themes

Published

on

Have you ever needed a website that should be built with WordPress Themes, but also should push the boundaries of this beautiful content management system? Ever needed to create a WordPress Themeswebsite to share code snippets, or set up an online course to sell your knowledge, or build a support system for your agency?

Sometimes, a theme and a bunch of plugins won’t work for our project. Sometimes, we need a complete system with a decent design and solid functionality. That’s where specialty themes come into play.

A WordPress theme must be developed to change the look of a website and avoid offering functionality embedded in its core. That’s called “invading the plugin territory” and considered as a bad practice since you basically chain the user to your theme with the functionality you offer. Luckily, there is a solution: You can provide functionality through plugins that you require your users to install. To do so, you can use a PHP library like TGM Plugin Activation.

But sometimes, a project requires that design and functionality work together. In this case, we have an exception, and the exception’s name, used throughout the WordPress market, is “specialty themes.”

If you decide to make a specialty theme for WordPress, you might want to consider a few things:

You must offer a unique approach in order to present your theme as a “specialty theme”. Go bananas if you like (if you’re certain that somebody will make use of your theme) and make the most eccentric theme the community has ever seen. Seriously, the community could use some variety in themes.

Actions and filters are part of the WordPress Plugin API, but that doesn’t necessarily mean themes can’t benefit from them. In fact, all of the most popular WordPress theme frameworks utilize actions and filters (mainly actions) so other developers can extend the frameworks. Follow their lead and make your theme extendable with WordPress action and filter hooks.

Here’s your “A-ha!” moment if you want to make more of your theme by diversifying design options—make your theme ready for child themes! Build your base theme (like a theme framework) and create child themes to offer different designs.

If you feel that other themes can benefit from a part of your functionality, go ahead and offer it as a plugin and require it by using the TGM Plugin Activation library. But in most cases, specialty themes’ functionalities can’t be used with other themes; so it would seem like a vain effort to convert the functionality.

But keep in mind that developers might create themes after you release your specialty theme, so it’s still a good idea to separate functionality from design.

There are so many types of specialty themes which can be made that it would be pointless to try to list all of them. But to get the idea, let’s write a few:

  • a job board
  • a question and answer system
  • a help desk
  • a learning management system
  • a crowdfunding website
  • a domain sale page
  • a “coming soon” page
  • a simple online wedding invitation
  • a knowledge base
  • a directory website
  • a contact manager
  • …and more

As I said earlier, any good idea could be—and should be—turned into a specialty theme. If you think you have a good idea to make an original specialty theme, go for it.

[quote font=”verdana” font_size=”14″ font_style=”italic” color=”#474747″ bgcolor=”#F5F5F5″ bcolor=”#dd9933″ arrow=”yes” align=”centre”]This Demo Content Brought to you by Momizat Team [/quote]

this is tags and keywords : wordpress themes momizat Tutorial wordpress templates

 

Continue Reading

Design

The Curious Case of Specialty WordPress Themes

Published

on

Have you ever needed a website that should be built with WordPress Themes, but also should push the boundaries of this beautiful content management system? Ever needed to create a WordPress Themeswebsite to share code snippets, or set up an online course to sell your knowledge, or build a support system for your agency?

Sometimes, a theme and a bunch of plugins won’t work for our project. Sometimes, we need a complete system with a decent design and solid functionality. That’s where specialty themes come into play.

A WordPress theme must be developed to change the look of a website and avoid offering functionality embedded in its core. That’s called “invading the plugin territory” and considered as a bad practice since you basically chain the user to your theme with the functionality you offer. Luckily, there is a solution: You can provide functionality through plugins that you require your users to install. To do so, you can use a PHP library like TGM Plugin Activation.

But sometimes, a project requires that design and functionality work together. In this case, we have an exception, and the exception’s name, used throughout the WordPress market, is “specialty themes.”

If you decide to make a specialty theme for WordPress, you might want to consider a few things:

You must offer a unique approach in order to present your theme as a “specialty theme”. Go bananas if you like (if you’re certain that somebody will make use of your theme) and make the most eccentric theme the community has ever seen. Seriously, the community could use some variety in themes.

Actions and filters are part of the WordPress Plugin API, but that doesn’t necessarily mean themes can’t benefit from them. In fact, all of the most popular WordPress theme frameworks utilize actions and filters (mainly actions) so other developers can extend the frameworks. Follow their lead and make your theme extendable with WordPress action and filter hooks.

Here’s your “A-ha!” moment if you want to make more of your theme by diversifying design options—make your theme ready for child themes! Build your base theme (like a theme framework) and create child themes to offer different designs.

If you feel that other themes can benefit from a part of your functionality, go ahead and offer it as a plugin and require it by using the TGM Plugin Activation library. But in most cases, specialty themes’ functionalities can’t be used with other themes; so it would seem like a vain effort to convert the functionality.

But keep in mind that developers might create themes after you release your specialty theme, so it’s still a good idea to separate functionality from design.

There are so many types of specialty themes which can be made that it would be pointless to try to list all of them. But to get the idea, let’s write a few:

  • a job board
  • a question and answer system
  • a help desk
  • a learning management system
  • a crowdfunding website
  • a domain sale page
  • a “coming soon” page
  • a simple online wedding invitation
  • a knowledge base
  • a directory website
  • a contact manager
  • …and more

As I said earlier, any good idea could be—and should be—turned into a specialty theme. If you think you have a good idea to make an original specialty theme, go for it.

[quote font=”verdana” font_size=”14″ font_style=”italic” color=”#474747″ bgcolor=”#F5F5F5″ bcolor=”#dd9933″ arrow=”yes” align=”centre”]This Demo Content Brought to you by Momizat Team [/quote]

this is tags and keywords : wordpress themes momizat Tutorial wordpress templates

 

Continue Reading

Trending

Take advantage of our impressive online traffic; advertise your brands and products on this site. Call

 

For Advert Placement and Enquiries, Call:

Mobile Phone:+234 803 304 2915

 

Online Editor: Michael Abimboye

Mobile Phone: 0813 699 6757

Email: mmakesense@gmail.com

 

Copyright © 2018 NewTelegraph Newspaper.

%d bloggers like this: