Skip to main content

Home/ Wordpress/ Group items tagged function

Rss Feed Group items tagged

awqi zar

Beginning WordPress Development: A Look at Common Functions - 6 views

  •  
    As a developer, one of my favorite things about WordPress is its built-in functions, which allow you to easily manipulate and extend WordPress with just a few lines of code. WordPress functions are an essential component of WordPress theme development; once you understand how they work, it's easy to create your own custom WordPress themes.
onextrapixel OXP

Practical Uses for the Post-Thumbnail Function in WordPress 2.9 - 7 views

  •  
    We are all used to seeing an image below blog posts titles, be it on blog homepages or on individual posts. However, until recently, adding these images was not as straightforward. Before the ability to register post thumbnails in themes was introduced in WordPress 2.9, WordPress theme developers were forced to use the post metadata in order to display an image associated with a post. In this tutorial, I'll show you how to add this functionality to your themes and we will play around with some of the function options.
  •  
    Practical Uses for Post-Thumbnail function in WordPress 2.9
Vernon Fowler

Function Reference/current user can « WordPress Codex - 2 views

  • Do not pass a role name to current_user_can(), as this is not guaranteed to work correctly (see #22624). Instead, you may wish to try the check user role function put together by AppThemes.
  •  
    "Function Reference/current user can Description Whether the current user has a certain capability."
Luciano Ferrer

Function Reference/is home « WordPress Codex - 3 views

  •  
    "Function Reference/is home This Conditional Tag checks if the main page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE. "
hicham hicham

Free Wordpress Themes Restaurant Blog Template - 0 views

  •  
    Wordpress Restaurant Menu Web2.0 Theme Template, Come with 2 Columns, web2.0 Theme Template, This theme is compatible with WordPress 2.7, ready for threaded comments come with WP 2.7, and tested on various major web browsers. Besides the integration of widely used function PageNavi, we add a brand new function to this theme - Quotable Commentary! With this function you can select any part of the article, quote it and reply, by just one click, Suitable For Restaurants Blogs Or City/Country Restaurants Directory Blogs, This work is under Creative Commons Attribution-Share Alike 3.0 License, This means you may use it and make any changes you like, However, credit links must remain on footer for legal use, This Theme Was Tested and Work Fine On IE 6.0 & 7.0, Mozilla Firefox, Opera 9.02, Google Chrome and Safari Web Browsers, this Theme Was Tested on The Latest Wordpress Version Also.
Luciano Ferrer

WordPress › Dynamic Featured Image « WordPress Plugins - 0 views

  •  
    "Dynamic Featured Image Dynamically adds multiple featured image (post thumbnail) functionality to posts, pages and custom post types. Dynamically adds multiple featured image or multiple post thumbnail functionality to your page, posts and custom post types. This plugin provides you an interface to add any number of featured image as you want without writing a single code. These dynamic featured images can then be collected by the various theme functions."
anonymous

Some Great WordPress Plug-ins That Boost The CMS Functionality - 0 views

  •  
    In the world of WordPress Plugins, you will find thousand plugins which will enhance, and extend your blog to CMS functionality. Here is a list of the some of the well-known plugins that will help you in extending your cms functionality.
Vernon Fowler

Post Types « WordPress Codex - 1 views

  • it is better if you prefix your identifier with a short namespace that identifies your plugin, theme or website that implements the custom post type. For example: acme_product or aw_product for products post type used by a hypothetical ACMEWidgets.com website
  • Namespacing your custom post type identifier will not guarantee against conflicts but will certainly minimize their likelihood.
  • Do pay close attention to not having your custom post type identifier exceed 20 characters though, as the post_type column in the database is currently a VARCHAR field of that length.
  • ...6 more annotations...
  • register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) );
  • When you namespace a custom post type identifier and still want to use a clean URL structure, you need to set the rewrite argument of the register_post_type() function. For example, assuming the ACME Widgets example from above:
  • 'rewrite' => array('slug' => 'products'),
  • Note: In some cases, the permalink structure must be updated in order for the new template files to be accessed when viewing posts of a custom post type.
  • single posts of a custom post type will use single-{post_type}.php and their archives will use archive-{post_type}.php where {post_type} is the $post_type argument of the register_post_type() function.
  • In any template file of the WordPress theme system, you can also create new queries to display posts from a specific post type. This is done via the post_type argument of the WP_Query object.
Vernon Fowler

Function Reference/wp title « WordPress Codex - 0 views

  • The wp_title() function should not be used by a theme in conjunction with other strings or functions (like concocting with bloginfo('name') ) to set the title because it will render plugins unable to rewrite page titles correctly. The best practice is to use the wp_title filter with a callback function. This method is now a requirement for themes.
Michael Sturgeon

10 awesome PHP functions and snippets - StumbleUpon - 1 views

  •  
    Every web developer should keep useful code snippets in a personal library for future reference. Today, I'm showing you the 10 most useful snippets and functions I have added to my snippet library from the past 3 months.
Luciano Ferrer

Distinto color según el estado de las entradas | Ayuda WordPress - 1 views

  •  
    "Un modo genial, además de chulo, de distinguir las entradas por su estado sería que se mostraran en distinto color en la ventana del listado de entradas ¿no?. Pues conseguirlo es muy sencillo, solo tienes que añadir este código al fichero functions.php de tu tema activo y ya lo tienes function posts_status_color() { ?> .status-draft { background: #FCE3F2 !important; } .status-pending { background: #87C5D6 !important; } .status-publish { /* por defecto */ } .status-future { background: #C6EBF5 !important; } .status-private { background: #F2D46F; }
Luciano Ferrer

How to Create Additional Image Sizes in WordPress - 0 views

  •  
    "WordPress has a built-in feature Post Thumbnails aka Featured Images. There is also a built-in function add_image_size() which lets you specify image sizes and give you the option to crop. Using these core functions in your theme can essentially eliminate the need of a third party script like TimThumb in most cases."
Luciano Ferrer

WordPress › WP Mail SMTP « WordPress Plugins - 0 views

  •  
    "Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings. This plugin reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page that allows you to specify various options."
Luciano Ferrer

WordPress › Peter's Login Redirect « WordPress Plugins - 0 views

  •  
    "Redirect users to different locations after logging in and logging out. Define a set of redirect rules for specific users, users with specific roles, users with specific capabilities, and a blanket rule for all other users. Also, set a redirect URL for post-registration. This is all managed in Settings > Login/logout redirects. You can use the syntax [variable]username[/variable] in your URLs so that the system will build a dynamic URL upon each login, replacing that text with the user's username. In addition to username, there is "userslug", "homeurl", "siteurl", "postid-23", "http_referer" and you can also add your own custom URL "variables". See Other Notes / How to Extend for documentation. If you're using a plugin such as Gigya that bypasses the regular WordPress login redirect process (and only allows one fixed redirect URL), set that plugin to redirect to wp-content/plugins/peters-login-redirect/wplogin_redirect_control.php and set the relevant setting to "Yes" at the bottom of the Settings > Login/Logout redirects page in the WordPress admin panel. You can add your own code logic before and between any of the plugin's normal redirect checks if needed. See Other Notes / How to Extend for documentation. Some examples include: redirecting the user based on their IP address; and redirect users to a special page on first login. This plugin also includes a function rul_register that acts the same as the wp_register function you see in templates (typically producing the Register or Site Admin links in the sidebar), except that it will return the custom defined admin address. rul_register takes three parameters: the "before" code (by default ""), the "after" code (by d"
Luciano Ferrer

How to Style Each WordPress Post Differently - 0 views

  •  
    "Have you ever came across a site that style their posts differently? Some sites have different sticky posts highlighted whereas others have each category post styled with a different color, or some may even have a totally unique outlook altogether. Well, that is exactly what we are going to cover in this article. We will share how you can style different WordPress posts in different ways. So what are we going to use? We will use a function called post_class. Post Class function prints out different post container classes which can be added, typically, in the index.php, single.php, and other template files featuring post content. Note: This tutorial requires that you are somewhat familiar with WordPress theming, and know fairbits of HTML / CSS. "
kie guy

wplookup.com - Wordpress Function/Tag Lookup Tool - 0 views

  •  
    An alternate, fast, accurate search engine for looking up WordPress functions. Highlighted on the WordPress Weekly podcast.
Vernon Fowler

Conditional Tags « WordPress Codex - 0 views

  • The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home() Conditional Tag, that task is made easy.
  • is_single()  When any single Post (or attachment, or custom Post Type) page is being displayed. (False for Pages)
  •  
    Great for use with the Widget Logic plugin. A reference for all the conditional tags that help you restrict a widgets viewing.
  •  
    Warning: You can only use conditional query tags on or after the init action hook in WordPress. For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.
Maggie Wolfe Riley

Digging Into WordPress - the book! - 4 views

  •  
    Two of my favorite web designers with super helpful blogs, Chris Coyier of CSS Tricks and Jeff Starr of Perishable Press, have just released their new collaboration! The book, "Digging Into WordPress," is now available as a PDF download, and if you buy the PDF book now, you will be eligible for a "sweet discount" on the hard copy of the book when it comes out, plus receive updates free. They've done a great job on this book, which covers setting up WordPress, anatomy of a WordPress theme, theme design and development, extending functionality including using WordPress as a CMS, working with RSS feeds, SEO, dealing with comments, and keeping your site "healthy." I already followed both of these designers before they began their collaboration, and have found countless useful tutorials, code snippets, design ideas, and much more on both of their sites - I've relied on Perishable Press as a source for great unobtrusive javascript code, and on CSS-Tricks for all kinds of other useful tools for making valid, functional, and beautiful sites. This book is bound to be a valuable reference to anyone who works with WordPress.
Anna Johansson

Overriding WordPress Functions | venutip.com - 0 views

1 - 20 of 157 Next › Last »
Showing 20 items per page