Articles of customization

Creating multiple hooks for theme

Iam working on a theme in the moment and got to the point where I also want to add some custom hooks to some locations, to enable some more flexibility. I want to add multiple hooks to the theme. I have different sections (header, content, sidebar, footer etc) and on all those locations I want […]

How to prevent first post and first comment on WP MU?

When a user creates a new blog a new post and a new comment is created at the same time. Is there a way to disable this?

How would go about if I just want a temporary function?

How would go about if I just want a temporary function? (It’s a converter just for converting Access to WordPress tables). I want to execute several times so therefore I want it automated, but I don’t know how to execute the function after adding the filter in add_action(). After I’m done converting, I will delete […]

woocommerce Add custom field set like billing fields

I am working on E-commerce functions where i require to Add custom fieldset as Profile Fields the fields in it are as billing Below are the Fields that is needed in My Check out and signup form profile_first_name profile_last_name profile_company profile_address_1 profile_address_2 profile_city profile_postcode profile_country profile_state profile_email profile_phone Can you please guide me on this […]

How to put logs in wordpress

Is there any way that I can log anything in wordpress similar to logs we can do it in Magento. I am integrating a custom plugin in that I have added few functions with help of hooks, So I need to debug something in it. In this I need if I can enter any text […]

Blogroll – Different layout for first post

I would like to have my main blogroll show 10 posts per page, but the first post of each page to be setup on a different div above the rest and have a featured image. This is what I sued for the first post of the page: // WP_Query arguments $args = array ( ‘pagination’ […]

Multiple menu items highlighted

I am using WordPress as the CMS for my website. For my navigation menu, I am using WordPress’ inbuilt navigation menu function. You add categories, page, etc, to this and it generates a list with certain classes you can style – like current-menu-item. My problem lies here: I have several categories in my menu, and […]

How Can A Widget With Only One Instance Be Defined?

How can a widget which of which only one instance can be used?

Last time a user logged in

I’m building a site where users log in to view content specific to them. I would like to display the last date and time they logged in. How would I get this information from wordpress? If it doesn’t exist, how could I add it? Example: Welcome Back! Your last visit was on 10/25/2010 at 3:14pm. […]

Hide a page in the admin end without a plugin?

I’m creating a series of pages with iFrames embedded in them, but it seems the only way to do this within WordPress (i.e. using the templating system) is to create pages in the admin end and then create individual templates for each of those pages. Is it possible to hide those pages from the admin […]