Categories
Wordpress Plugins

Using Custom Post Type

WordPress starts as a blogging platform, but in its development, it now has become a full Content Management System (CMS). One of some feature that make a WordPress as a CMS is Custom Post Type.

When using WordPress as a blogging platform, you will likely to get a common post type just like any other blogging platforms: blog post or also known as blog entry on some platform. But a CMS must have an ability to accommodate more broad post type such as news, article, quotation, etc. This is the place where Custom Post Type takes place.

For simplifying site management, you should use Custom Post Type UI. Custom Post Type UI is a WordPress plugin to add, edit, and delete Custom Post Types with its own administration panel. The advantage of using Custom Post Type UI is you only need to create a Custom Post Type once, not to create it again and again every time you want to publish the same Custom Post Type.

New Custom Post Type
New Custom Post Type

Open the administration panel and choose Settings > Custom Post Type UI. There is a new page with all you need to create a new Custom Post Type. Fill in the form just like the example above and press Create Custom Post Type button to save it.

Custom Post Type Menu
Custom Post Type Menu

The new Custom Post Type that you just created will be added into the administration menu, so it can be accessed every time you want to use it. Create more Custom Post Type needed for your site. When you want to publish a content with custom type then it will be available to you from the menu.

Categories
Wordpress Plugins

Menggunakan Custom Post Type

Meskipun WordPress dimulai sebagai platform untuk blogging, namun dalam perkembangannya kini telah menjadi Content Management System (CMS) lengkap. Salah satu fitur yang membuat WordPress sebagai CMS adalah Custom Post Type.

Ketika menggunakan WordPres sebagai platform blogging, kamu dapat menemui post type yang umum pada platform blogging lainnya, yaitu blog post atau yang juga disebut dengan blog entry pada platform tertentu. Namun CMS harus dapat mengakomodasi post types yang lebih luas lagi, seperti berita, artikel, kutipan, dll. Disinilah Custom Post Type berperan.

Untuk alasan kemudahan manajemen situs, sebaiknya kamu menginstal Custom Post Type UI. Custom Post Type UI adalah plugin WordPress untuk menambah, mengedit, dan menghapus Custom Post Types dengan halaman administrasinya sendiri. Keuntungan menggunakan Custom Post Type UI adalah, kamu hanya perlu mengatur custom post type sekali saja, bukannya berulang-ulang mengaturnya melalui halaman Add New Post.

New Custom Post Type
New Custom Post Type

Buka panel administrasi dan pilih menu Settings > Custom Post Type UI. Kamu akan menemui halaman baru berisi semua kolom yang dibutuhkan untuk membuat Custom Post Type baru. Isilah kolom tersebut seperti contoh diatas dan tekan tombol Create Custom Post Type untuk menyimpan perubahan.

Custom Post Type Menu
Custom Post Type Menu

Custom Post Type yang baru kamu buat akan segera ditambahkan ke menu di panel administrasi, sehingga kamu dapat mengaksesnya langsung. Buatlah Custom Post Type lainnya sesuai yang dibutuhkan oleh situsmu. Selanjutnya apabila kamu ingin membuat konten baru berdasarkan post type tertentu cukup mengaksesnya dari menu saja.

Categories
WordPress

3 Easy Steps to Create a Child Theme

Twenty Ten WordPress Theme
Twenty Ten WordPress Theme

WordPress child theme is a theme that inherits all features from other theme (parent theme), which is modified and added with new features. Creating a child theme can be a complicated process, but if you just want to change the style from parent theme without adding any feature, then it can be done with only 3 easy steps. The default theme from WordPress 3.x used as an example.

  • Step 1: Create a Folder for a Child Theme
  • Create a new folder inside wp-content/themes/ for the child theme. One thing to note,  although basically the child theme inherits all features from a parent theme, but the folder you need to create has to be inside wp-content/themes/, not inside the parent theme.

  • Step 2: Create a Stylesheet
  • This is the stylesheet which make the child theme presentation differs from the parent theme. Create a new stylesheet and add the information below right at the top of the stylesheet:

    /*
    Theme Name: Twenty Ten Child Theme
    Theme URI: http: //itx.web.id/
    Description: Child theme for Twenty Ten
    Author: Eko Author URI: http: //itx.web.id/author/eko
    Template: twentyten
    Version: 0.1.0
    */

    To use the style from the parent theme as a base for your own style, you just need to import the style from the parent theme:

    /*
    Theme Name: Twenty Ten Child Theme
    Theme URI: http: //itx.web.id/
    Description: Child theme for
    Twenty Ten Author: Eko Author URI: http: //itx.web.id/author/eko
    Template: twentyten
    Version: 0.1.0
    */

    @import url(“../twentyten/style.css”);

    # Add your custom styles here #
    #

    Save the stylesheet file as style.css and put it inside the folder you’ve created for the child theme. When you have a child theme, then the parent theme is not loaded in the WordPress administration panel.

  • Step 3: Activate The Child Theme
  • The last step is testing. Activate the child theme just like any other themes from Appearance -> Themes menu.

That’s all you need to create a child theme. This is a quick guide to create a child theme. To create a unique child theme, you might need to add new features not available on the parent theme. It’s beyond what we discuss here.

Categories
Wordpress Plugins

URL Shortening Service Directly from Your Site

URL

Gambar oleh Chris Dlugosz

You must be already know the url shortener technique used in the Internet. Basically, the url shortening process involve HTTP Redirect with a short domain address which is directed to a target site with a long URL.

This process can create a compact URL, but you cannot trace how many times a link has been clicked. You’ll need to trace click count as an example for measuring the number of clicks to affiliate sites by your site visitors.

Off course there are some site providing free URL shortening service, such us the one offered by bit.ly. But this will create an impression your site isn’t professional. It will be a lot more convenient if you have URL shortening services integrated into your site.

You can do that process by using Simple URLs. Simple URLs is a wordpress plugin for managing URL where you can create, edit, trace outbound links, and delete links from your site. With Simple URLs, every links will be published using your own domain address.

Simple URLs developed by StudioPress. In their site, it’s explained that Simple URLs using a custom post type with a custom permalink structure too. Reducing performance and scalability problems.

You can download the plugin either from StudioPress or fram WordPress Plugin Directory. It’s free.

Categories
WordPress

What is FireSheep and How to Protect WordPress from FireSheep

Sites authentication involving encryption process to scramble login information that pass through Internet. This is a standard procedure and supported by almost all publishing platform including WordPress. Unfortunately, for everything else, encryption is not a default feature.

When a user login for the first time with username and password, the web server will check the information to decide if the account is valid. If it is valid, then the web server will reply dan put cookies on browser to track user login session. Even thought the login information are encrypted, but the cookies are not.

This is the hole exploited by FireSheep. FireSheep is a FireFox add-on to sniff wifi network for cookies. It’s easy now to find open wifi network such as in shopping center, restaurant, coffee shop, etc. FireSheep user just need to sit and activate the FireSheep add-on. If there’s an unsecure website, then FireSheep will display names and picture from the accounts captured. By clicking those name/picture, FireSheep can login to those accounts.

FireShip User Interface
FireShip User Interface

Below are few tips to protect WordPress users from FireSheep:

  • Do not use public wifi
  • Use add-ons to force FireFox to use secure channel

From the WordPress itself, the administrator can force WordPress to use secure access via SLL by adding configuration commands in the wp-config.php file:

# Securing login session
define(‘FORCE_SSL_LOGIN’, true);

# Securing administration panel
define(‘FORCE_SSL_ADMIN’, true);

Those two configuration commands are a very good option for securing WordPress sites. To activate it, you should make sure your hosting provider supports it. Consult with your hosting provider about SSL feature.

Categories
Wordpress Plugins

WP Post to PDF Conversion

WP to PDF image

WordPress is a platform that can help you to publish content on the Internet. You can easily writing a pos, adding a picture, embedding a file using WordPress. Contents are very important because they can attract attention from visitors to read your site.

If you prepared the contents well, then the more likely your reader will like the contents that you’ve published. There will be a chance they will save the content their like from your site into their computer.

The easiest choice for saving content into computer is using Save As facility from a browser. Browser will save the file as an html file with a separate folder for images. Some browser such as Internet Explorer and Opera provide a compact format to save a web with images and other files as a single file, using .MHT format. Unfortunately, this format isn’t available by default in other browser.

Using default option to save a page is not a compact choice, because it requires a file + a folder to save a single content. It will be a lot more convenient if your site can provide a single file for most of page.

Yes, you can do that using your WordPress site by converting a web page to pdf with WP Post to PDF plugin. PDF is become feasible option for you to provide, because it’s a popular format. Many users already have pdf reader installed in their computer.

Use a WordPress built-in installer to install WP Post to PDF easily. If you prefer to install it manually, then you can get it from WordPress Plugin Directory. After installing and activating WP Post to PDF, then there will be a PDF icon in right side of your web page. Visitors can now download contents from your site as a PDF file.

WP Post to PDF is created by Neerav Dobaria.

Categories
Wordpress Plugins

Adding Google Calendar to WordPress

Image by Hiroaki Maeda

Google Calendar is a web based application that offers the same features as desktop application counterparts such as Microsoft Outlook. This is a time management application where you can manage meeting schedules in office or as a remainder for special day with your family. You can customize calendar by giving it a title, explanation, remainder with alarm, etc. Google calendar can be accessed by almost every operating system including for mobile devices such as cell phone and PDA as long as the operating system has browser that supports AJAX. It differs from desktop application, Microsoft Outlook, which only available only to PC and MAC users.

It will be convenient if Google Calendar can be added to your WordPress site. A site that MENGGELAR events for it’s visitors can gain advantages using Google Calendar. It’s because Google Calendar can be set to be accessed publicly by your visitors. The problem is the color scheme of Google Calendar can clash with the color scheme of your site.

Now that problem can be handled using Stout Google calendar plugin for WordPress. With Stout Google Calendar, you can have several calendars with different color schemes. These color schemes can be set as you wish. Below are the features of Stout Google Calender plugin:

  • Custom color schemes
  • Calendar management from WordPress administration panel
  • Save many calendars with different configurations such as color scheme, size, and date format
  • Display calendar using widget
  • Preview before saving
  • Color picker tool for easy color scheme selection

You can get Stout Google Calendar from WordPress Plugin Directory or using WordPress built-in installer directly from your administration panel.

Categories
Wordpress Plugins

Diagnostic tool for Web Server

Image by labormikro

It will be troublesome for us to get information from our web hosting provider where we put our wordpress installation about technical detail of their server. For an instance from my web hosting provider, I have to ask for a ticket support for every question about their services. Including detailed information about web server such as version of PHP or MySQL that can be helpful to a wordpress administrator. Surely they will always updating their system. The details that we get today are not always the same in the next month. The process of sending a ticket support has to be repetead to get updated information.

This is where Diagnosis plugin can help you. Diagnosis plugin can provide detailed technical information about PHP, MySQL, and other services that might be needed by a wordpress administrator. Diagnosis plugin provide this information by adding a new subdirectory to dashbord menu. From this page you can get a lot of information about the web server where you host your wordpress installation. Example of information that you can get from diagnosis plugin are similar to information from phpinfo() page.

The information from diagnosis plugin displayed in simple tables with extra explanations that can help in administering wordpress. Every field in the table comes with a link to wikipedia. Just in case you need more explanation. The information from diagnosis plugin can be used to determine is the web server that you’ve been using has the capabilities needed to handle specific plugin which requires the specific version of web server.

You can get information about Diagnosis plugin in WordPress plugin directory.

Categories
WordPress

Apa itu FireSheep dan Bagaimana Mengamankan WordPress dari FireSheep

Otentikasi suatu situs melibatkan proses enskripsi untuk mengacak informasi login yang diberikan melalui Internet. Ini adalah prosedur standar dan didukung oleh hampir semua platform penerbitan termasuk WordPress. Namun untuk hal lainnya, enskripsi bukanlah fitur default, seperti untuk cookie.

Ketika pengguna melakukan login dengan menggunakan username dan password, web server akan mengecek informasi ini untuk menentukan apakah akun tersebut adalah akun yang valid. Jika memang valid, web server akan membalas dan menaruh cookie pada browser untuk melacak sesi login pengguna. Meskipun informasi login dienskripsi, tapi cookies tidak.

Dari celah inilah FireSheep bekerja. FireSheep adalah add-on untuk Firefox yang dapat menyadap jaringan wifi untuk mencari cookies. Sekarang ini sangat mudah menemukan jaringan wifi terbuka seperti di pusat perbelanjaan, restoran, kedai kopi, dll. Pengguna FireSheep cukup duduk dan mengaktifkan FireSheep. Jika ada situs yang tidak aman, maka FireSheep akan menampilkan nama dan foto dari akun yang berhasil disadapnya. Dengan hanya mengklik nama/foto itu, maka FireSheep dapat login dengan akun tersebut.

FireShip User Interface
FireShip User Interface

Berikut ini ada beberapa tips untuk melindungi pengguna WordPress dari FireSheep:

  • Jangan gunakan wifi publik
  • Gunakan add-ons untuk memaksa FireFox menggunakan jalur aman

Terakhir dari sisi situs WordPress itu sendiri, administrator bisa memaksa WordPress untuk menggunakan akses aman via SSL dengan menambahkan perintah konfigurasi berikut ini di berkas wp-config.php:

# Mengamankan sesi login
define(‘FORCE_SSL_LOGIN’, true);

# Mengamankan panel administrasi
define(‘FORCE_SSL_ADMIN’, true);

Dua perintah konfigurasi tersebut adalah pilihan yang baik untuk mengamankan situs WordPress. Untuk menggunakannya, kamu harus memastikan bahwa penyedia jasa hosting mendukung SSL. Konsultasikan ini dengan penyedia jasa hosting-mu.

Categories
Wordpress Plugins

Buka Tokomu Sendiri dengan MarketPress

Keranjang Belanja

Gambar oleh Greg

Setiap orang mempunyai definisi yang berbeda mengenai WordPress. Tergantung untuk keperluan apa mereka menggunakannya. Bagi sebagian orang, WordPress adalah alat buat menulis blog. Bagi yang lain, WordPress adalah sebuah CMS. Ada juga yang menganggap WordPress itu adalah platform jejaring sosial.

Sekarang WordPress mempunyai definisi baru, yaitu sebagai platform e-commerce. Iya, platform yang kamu gunakan untuk membuat toko daring. Dua hari yang lalu atau tepatnya pada tanggal 22 September, situs WPMU mengumumkan peluncuran MarketPress. Itu adalah plugin baru untuk WordPress yang dapat mengubah situs milikmu menjadi situs e-commerce.

MarketPress dapat bekerja dengan WordPress, MultiSite, dan BuddyPress. Kamu dapat membuka satu toko atau beberapa toko sekaligus menggunakan MultiSite. Fitur yang ditawarkan oleh MarketPress sebanding dengan yang kamu temui pada situs E-Commerce seperti Etsy atau Shopify.

Jadi kamu akan menemui fitur wajib dari platform e-commerce, seperti:

  • Shopping cart
  • Product list
  • Product categories
  • Product tag cloud

Fitur lengkap dari MarketPress dapat kamu lihat di WPMU DEV.

Sebenarnya WordPress sebagai platform e-commerce bukanlah hal yang baru. Sudah ada beberapa plugin sebelumnya yang memberikan fitur semacam itu. Akan tetapi baru kali ini plugin e-commerce didesain untuk kompatibel dengan WP MultiSite dan BuddyPress tanpa perlu kustomisasi tambahan.

Jika ingin mengetahui seperti apa situs WordPress yang sudah dilengkapi MarketPress, kamu dapat melihat demonya di www.wp-ecommerce.org. Jika sudah akrab, maka buka tokomu sendiri dengan MarketPress yang dapat diunduh dari WPMU DEV (harus gabung jadi anggota dulu).