1

How to add eShop in custom post type in WordPress 3

By default, eShop shopping cart plugin will use standard post to display it’s product options. But it would be better if we can use custom post type which is available in wordpress 3 to have separate post type for our product. First we need to install eShop and Custom Post Type UI then use Custom Post Type UI to create custom post type easily instead of messing around with functions.php.

Next is look for editing eshop-product-entry.php file inside eshop plugin folder. Search for this code approx on line 13

add_meta_box( 'epagepostcustom', __( 'Product Entry', 'eshop' ), 'eshop_inner_custom_box', 'post', 'normal','high' );

Now replace ‘post’ with your newly created post type, i.e: product.

add_meta_box( 'epagepostcustom', __( 'Product Entry', 'eshop' ), 'eshop_inner_custom_box', 'product', 'normal','high' );

That’s all, when you add new product, there’s eShop options available for that custom post type.

0

How to display future post in WordPress

This is small snippet to display all future posts starting today. Add this before doing the loop

<?php
function filter_where($where = '') {
  //posts in the last 30 days
  $where .= " AND post_date >= '". date('Y-m-d', strtotime('now')) . "'";
  return $where;
}
add_filter('posts_where', 'filter_where');
query_posts($query_string . "post_status=future,publish&orderby=date&order=ASC");
?>

You can limit the result or change order. See Codex for details of using query_posts

3

The right web host for your business

Some people thought that in order to get a great service, they’ll have to spend a big amount of money. Well, not really. Sometimes, spending more is not even advisable.

I don’t think there’s still a need for me to explain why a business should set up a website. It has been proven to be a very effective way of marketing a product, service or company. You can buy a hosting package from many different hosting providers. But not all of them are reliable enough to make sure your website is always online. Every minute and every hour is important for a business especially if you’re serious on getting your business a good start.

… Continue Reading

2

Workshop Web Development gratis di Surabaya

Mau berkarir di dunia web development? atau sekedar menyalurkan hobi ? kebetulan di Surabaya akan segera diadakan workshop singkat yang terdiri dari kelas web design dan web programming. Tidak dipungut biaya untuk mengikuti workshop yang rencananya akan diadakan di THR mulai tanggal 22 Juli 2009.

Saya sendiri Insya Allah akan kesana kepengen silaturahmi dengan rekan2 yang lain :) . Keterangan detail bisa dilihat infonya di web PHPUG

13

Sekilas Web Accessibility

Saat ini web accessibility menjadi salah satu topik yang hangat di dunia web development. Hal ini terjadi karena sudah banyak negara-negara terutama di eropa yang mengadopsi undang-undang yang mengatur web accessibility. Tapi mengapa web accessibility dianggap sedemikian penting sehingga perlu adanya aturan-aturan dan sejauh mana aturan-aturan web accessibility tersebut, atau bahkan apa sebenernya definisi web accessibility.

… Continue Reading

1

telkomspeedy.com hanya utk IE 6

screenshot telkomspeedy.com

jadi buat yg make browser lain, gak usah diliat web-nya :D

19

www pro dan kontra

Apakah anda selalu menambahkan www ketika menuliskan sebuah url di browser ato sebaliknya ? pernahkah anda sesekali mendapatkan sebuah website yang hanya bisa diakses jika menggunakan www didepan nama domain ?. Sebenarnya penggunaan preffix www didepan sebuah domain misal: www.ex3me.org adalah kebiasaan jaman dulu.

… Continue Reading

3

Sejarah DOCTYPE switch

Penggunaan deklarasi DOCTYPE didalam sebuah dokumen html menandakan jenis dokumen tersebut dan bagaimana sebuah browser me-render output berupa halaman kepada user. Penggunaan DOCTYPE switch membuat halaman website kita bisa dapat berjalan di dua mode yaitu standard mode dan quirk mode tergantung dari jenis browser yang digunakan (kecuali IE 6 yg menambahkan tag xml utk dapat berjalan di quirk mode). Tapi tahukah anda kapan pertama kali ide penggunaan DOCTYPE switch dicetus ? adalah seorang yang bernama Todd Fahrner di tahun 1998 yg mencetuskan ide ini pertama kali.

Dia juga yang memiliki alasan betapa banyaknya website yang menggunakan table-based untuk melayout halaman, sehingga penggunaan DOCTYPE switch menjadi solusi pada saat itu. Saya juga baru tau kalo ide tableless design utamanya memiliki standard W3C udah ada semenjak tahun 1998 :)

Pages ... 1 2