8 articles Wordpress

WordPress Cannot Open Plugin Page

Website rekadia.co.id menggunakan wordpress. Tiba-tiba terjadi kendala, ketika login admin menampilkan error “too many redirects”, dan beberapa halaman admin menampilkan error not found (plugin, theme, add plugin, dan lain-lain). Saya masih belum tahu penyebab error ini. Solusi yang saya temukan dengan mengubah PHP version di cpanel. Saya mengganti PHP Version awal (lupa) menjadi 7. Ketika…

WordPress: Allow Using Ajax Request on Theme

Sometimes we need to have ajax in wordpress element in order to retrieve sub-categories, or anything. To allow using ajax, this several steps can make it happen. Add below code under the functions.php file inside theme folder. [code lang=”php”] function implement_ajax() { if(isset($_POST[‘main_catid’])) { $categories= get_categories(‘child_of=’.$_POST[‘main_catid’].’&hide_empty=0′); foreach ($categories as $cat) { $option .= ‘<option value="’.$cat->term_id.’">’;…

WordPress: How To Make Themes Support Multilanguage

WordPress is a powerful blogging platform. It can support creating and using custom theme. Sometimes, people need to create their theme multilanguage supported. In this post, the technique in order to achieve multilanguage is revealed. Create languages folder inside the theme folder. This folder will be used to saved translated text in .po and .mo…

Write Source Code – WordPress

Using plugin SyntaxHighLighter you can write source code to posting Shortcode Parameters These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass true/1 or false/0. lang or language — The language syntax to highlight with. You can alternately just use that as the tag, such as. Click here for a list of valid…