Did you get WordPress blank page ?

Did your WordPress web suddenly go to blank page ? Then check admin section ( /wp-admin ). If the admin section is accesible then it is not so bad. Login inside web and deactivate all plugins or deactivete one by one. Usually the issue is connected to some plugin. When you find the corrupt plugin, then you win,…
Sometimes it is not posible to deactivate plugin (very special cases). Then simpy connect through FTP and delete it this way.

If this cannot help you, then you can also easily upgrade your wordpress. Don’t detele wp-content folder and wp-config.php file, but othet files you can delete. Then install new version files. Also plugins you can delete and update.

WordPress – import from other CMS

WordPress itself allows to import content from other CMS (content managemet systems). Unfortunatelly this is not enough especially when you need to import from other system then Blogger and othes usual systems.

How to import from old own CMS ?

I had just problem to get data from my old php system, which was in past programmed by me. This was just very old application, which was working perfectly, but there was simply not any standard how the data was kept in database. So I had my own structure of post names, content, date/time format, etc.

Logically there is not any tool which can transfer this data to WordPress. So I tried somehow get some „sorted structure“. Only one thing which was quite standartized was RSS channel from my site. So I tried to use it together with some WordPress RSS importer plugins. No succes. I did not get it…

Is CSV or XLS the good way how import data to WordPress ?

Yes, finnaly I used just this option. So the procedure was this :

  1. Export data from MySQL database to CSV file
  2. Then I had to somehow „play“ with these information, becouse logicaly the fields from my own CMS was totaly different to anything else. I had to „forgot“ some fields as some „data/time“ filelds or some other parameters
  3. Then I uses some import plugins for wordpress. I remember that the most usable was one of these : Wp Ultimate CSV Importer or CSV Importer
  4. Then I connected some fields from CSV to offered field from Importer

One thing which caused problem for firts time was of course encoding, but whan I choose UTF-8 everywhere, then it was OK.

Last comment – unfortunately some old articles in old systems had some special characters inside so I saved only 90% of content and the rest had to be manually edited …

 

Tvorba jenoduchého pluginu pro WordPress

Potřebujete ve WordPressu nějakou funkci, kterou vám běžné plugine nejsou schopny poskytnout ? Vyznáte se v MySQL a PHP ? Pak tady je jednoduchý návod, který jsem použil já :

  1. V adresáři plugins si vytvořte svůj podadresář (napč Rax)a umístěte  sem php soubor (rax.php)
  2. V souboru je nutno uvést hlavičku se základními informacemi
  3. Vámi požadovanou funkci můžete spustit na základě tzv. hacků – zjednodušeně řečeno – WordPress má ve svém fungování nadefinována místa, kam můžete vložit nějaký hack navazující na nějakou událost. Tak třeba  při vypsání postu, můžete specifikovat, že se má spustit vámi definovaná nová funkce (třeba zobrazení nějaké fotografie)
  4. Pokud chcete aby měl plugin nějaké své admin rozhraní a objevoval se v administrátorském menu, použijte funkci
    • add_options_page
    • add_menu_page
  5. Dále už si pak všechno můžete naprogramovat v php

Pěkný návod jsem našel zde : http://net.tutsplus.com/tutorials/wordpress/creating-a-custom-wordpress-plugin-from-scratch/