New to Translating WordPress? Read through our Translator Handbook to get started. Hide
Prio | Original string | Translation | — |
---|---|---|---|
↑ | Widget Logic lets you control on which pages widgets appear using WP's conditional tags. | You have to log in to add a translation. | Details |
Original untranslated
Widget Logic lets you control on which pages widgets appear using WP's conditional tags.
You have to log in to edit this translation. |
|||
↑ | Widget Logic | You have to log in to add a translation. | Details |
Original untranslated |
|||
The 'widget_logic_eval_override' filter | You have to log in to add a translation. | Details | |
Original untranslated
The 'widget_logic_eval_override' filter
CommentFound in description header. You have to log in to edit this translation. |
|||
Before the Widget Logic code is evaluated for each widget, the text of the Widget Logic code is passed through this filter. If the filter returns a BOOLEAN result, this is used instead to determine if the widget is visible. Return TRUE for visible. | You have to log in to add a translation. | Details | |
Original untranslated
Before the Widget Logic code is evaluated for each widget, the text of the Widget Logic code is passed through this filter. If the filter returns a BOOLEAN result, this is used instead to determine if the widget is visible. Return TRUE for visible.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
Note the extra ';' on the end where there is an explicit 'return'. | You have to log in to add a translation. | Details | |
Original untranslated
Note the extra ';' on the end where there is an explicit 'return'.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
There are lots of great code examples on the WP forums, and on WP sites across the net. But the WP Codex is also full of good examples to adapt, such as <a href="http://codex.wordpress.org/Template_Tags/in_category#Testing_if_a_post_is_in_a_descendant_category">Test if post is in a descendent category</a>. | You have to log in to add a translation. | Details | |
Original untranslated
There are lots of great code examples on the WP forums, and on WP sites across the net. But the WP Codex is also full of good examples to adapt, such as <a href="http://codex.wordpress.org/Template_Tags/in_category#Testing_if_a_post_is_in_a_descendant_category">Test if post is in a descendent category</a>.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
Make good use of <a href="http://codex.wordpress.org/Conditional_Tags">WP's own conditional tags</a>. You can vary and combine code using: | You have to log in to add a translation. | Details | |
Original untranslated
Make good use of <a href="http://codex.wordpress.org/Conditional_Tags">WP's own conditional tags</a>. You can vary and combine code using:
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
The text in the 'Widget logic' field can be full PHP code and should return 'true' when you need the widget to appear. If there is no 'return' in the text, an implicit 'return' is added to the start and a ';' is added on the end. (This is just to make single statements like is_home() more convenient.) | You have to log in to add a translation. | Details | |
Original untranslated
The text in the 'Widget logic' field can be full PHP code and should return 'true' when you need the widget to appear. If there is no 'return' in the text, an implicit 'return' is added to the start and a ';' is added on the end. (This is just to make single statements like is_home() more convenient.)
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
<code>global $post; return (is_page('home') || ($post->post_parent=="13"));</code> -- home page OR the page that's a child of page 13 | You have to log in to add a translation. | Details | |
Original untranslated
<code>global $post; return (is_page('home') || ($post->post_parent=="13"));</code> -- home page OR the page that's a child of page 13
CommentFound in description list item. You have to log in to edit this translation. |
|||
<code>global $post; return (in_array(77,get_post_ancestors($post)));</code> -- WP page that is a child of page 77 | You have to log in to add a translation. | Details | |
Original untranslated
<code>global $post; return (in_array(77,get_post_ancestors($post)));</code> -- WP page that is a child of page 77
CommentFound in description list item. You have to log in to edit this translation. |
|||
<code>is_category() && in_array($cat, get_term_children( 5, 'category'))</code> -- category page that's a descendent of category 5 | You have to log in to add a translation. | Details | |
Original untranslated
<code>is_category() && in_array($cat, get_term_children( 5, 'category'))</code> -- category page that's a descendent of category 5
CommentFound in description list item. You have to log in to edit this translation. |
|||
<code>strpos($_SERVER['HTTP_REFERER'], "google.com")!=false</code> -- widget to show when clicked through from a google search | You have to log in to add a translation. | Details | |
Original untranslated
<code>strpos($_SERVER['HTTP_REFERER'], "google.com")!=false</code> -- widget to show when clicked through from a google search
CommentFound in description list item. You have to log in to edit this translation. |
|||
<code>current_user_can('level_10')</code> -- admin only widget | You have to log in to add a translation. | Details | |
Original untranslated
<code>current_user_can('level_10')</code> -- admin only widget
CommentFound in description list item. You have to log in to edit this translation. |
|||
<code>is_single() && in_category('baked-goods')</code> -- single post that's in the category with this slug | You have to log in to add a translation. | Details | |
Original untranslated
<code>is_single() && in_category('baked-goods')</code> -- single post that's in the category with this slug
CommentFound in description list item. You have to log in to edit this translation. |
|||
<code>is_category(array(5,9,10,11))</code> -- category page of one of the given category IDs | You have to log in to add a translation. | Details | |
Original untranslated
<code>is_category(array(5,9,10,11))</code> -- category page of one of the given category IDs
CommentFound in description list item. You have to log in to edit this translation. |
Export as
Comment
Short description.