WordPress Blank Screen Issue [closed]

add if ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘debug’) define(‘WP_DEBUG’, true); to your wp-config.php file. then visit your site http://www.cleanupisrael.org.il?debug=debug you should get an error message instead of just a blank screen. if that fails, then disable all the plugins and re-enable them one by one. not fun, but should tell you where the problem is.

category filter doesn’t work in WPML

First you should upgrade WPML to the latest version, which is 2.4.3 at time of writing. To properly translate categories you should start by editing the category of the default language. Once you are in that screen (wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=x&post_type=post where x is the category ID), you will see at the bottom a metabox titled Language. This … Read more

Mysql SELECT posts

I resolved creating SQL query: SELECT posts.post_title, posts.post_content, trans.element_type, trans.language_code FROM wp_posts AS posts INNER JOIN wp_icl_translations AS trans ON posts.ID = trans.element_id INNER JOIN wp_postmeta AS meta ON posts.ID = meta.post_id WHERE trans.element_type=”post_product” AND trans.language_code=”de” This is added only if you need something on post_meta: … INNER JOIN wp_postmeta AS meta ON posts.ID = … Read more

How to list WP multisite languages

Fix it by querying to wpml languages table. get all sites loop through the sites get blog ids. Query ICL languages table of each blog(each multi-site) Add into Array & play accordingly $blog_id == 1 condition used because the base site doesn’t have blog id prefix with table name Here is the function function getSitesLanguages() … Read more

WPML – Set language of inserted post

The wpml_set_element_language_details action element_type need to be with the correct prefix that WPML use: From the WPML Docs element_type(string) The type of an element. Can be a post type: post_post, post_page, post_attachment, post_nav_menu_item, post_{custom post key} or taxonomy: tax_category, tax_post_tag, tax_nav_menu, tax_{custom taxonomy key}. Defaults to post_post if not set. In your case it should … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)