Attachments for custom posts


|

Attachment.png

Attachments can be linked to any post or page, so custom posts have not any difference and any code below work for classic posts as well.

How to add file to the post ? How to get the file ? And how to change file attributes like title for attachments ? Here you will find the answers.

more …

Introduction to custom posts


|

sculptor.jpg WordPress 3 give new instrument which make WP more powerful and wide abilities for make blogs and sites better. Custom posts allow to separate some objectives from posts and pages to make good treatment for files, events, news etc.

What really custom posts is ? more …

New plugin for optimize styles and scripts


||

Hurrah !
speed-racing-bike-concept.jpg

Definitely, I find the way how to make required optimization for my site in simple and beautiful way.

Some time ago I wrote about good optimization, but changes in core kill the idea. I was thinking about plugin to make required things:

  • collect styles/scripts and concatenate them into solid files
  • minify styles
  • translate images to data:uri if possible

Yes, this is not a big deal, but I want to have all of this with more ability more …

Nginx for dummies


||||

776px-Nginx-battleship.svg.png
I was installing nginx as reverse proxy again. And find that some crib note will be nice.

Install

In theory you have to request the package which resolve all dependencies. But I found that EPEL has nginx version 0.6.39 and I go to make nginx from sources.
more …

Integrate jQuery UI addon into WP


It’s pretty simple !
jQuery UI WordPress 3.0.1 has jQuery version 1.4.2 and jQuery UI core version 1.7.3, Interactions and partly Widgets: Dialog и Tabs. You can looks here a components of jQuery UI. Do not forget switch to version 1.7.3.

Integration looks simple – you have to add handle to dependencies array in wp_enqueue_script: ( in the followed example I am adding datapicker, which is absent in WP and required jquery-ui-core only)
more …

Optimization in numbers


||

pie.png

To finish the cycle of articles about WordPress optimization we need to take a look for result. Using of any plugings or techniques without understanding will drive increase time of loading. But any lightweight page is worse if it is loaded long time :)

more …

Concatenate styles in WordPress


||

online-marketing-squeeze.jpg To continue WordPress optimization let’s take a look into styles.

Like scripts we have to include styles by enveloping function wp_enqueue_style and next:

In first put changes into /wp-includes/script-loader.php
more …

Cache control in user browser


|

Daily Provision.JPG In page load optimization you can not skip browser caching. Because in best case any element should be requested only if changes. Magic ? No, only right cache control !

To control cache we can use 2 methods:

  1. ETag and Last-Modified
  2. Cache-Control

more …

WordPress page load optimization


||

packing_box.jpg I had to touch some pages to decrease load time for WordPress pages and collect some material to write down. Few articles will be follow to describe the received experience.

the material will be more interesting for programmers who understand code oof WordPress. But some of the issues can be done by accurate people.
more …

Permalink changing


Days ago, my old client ask me change permalinks to more simple. He has

/%year%/%category%/%postname%/

But wish

/%postname%.html

But WordPress crash down when he try to change it himself.

I am thinking – Oh, yes ! It is very simple task for that money !
I was trying but WordPress going down to crash. Updating to last release was not helping and I am going to take a look into code
more …

feedback content * preview