SELECT u.id, u.name, u.age, h.hobby
FROM users u
LEFT JOIN hobbies h
ON u.id = h.user_id;
'orderby'
(string) Field(s) to order terms by. Accepts term fields ('name', 'slug', 'term_group', 'term_id', 'id', 'description'), 'count' for term taxonomy count, 'include' to match the 'order' of the $include param, 'meta_value', 'meta_value_num', the value of $meta_key, the array keys of $meta_query, or 'none' to omit the ORDER BY clause. Defaults to 'name'.
'order'
(string) Whether to order terms in ascending or descending order. Accepts 'ASC' (ascending) or 'DESC' (descending). Default 'ASC'.
echo get_field( 'little-text', 'products_category_' . get_queried_object_id() );
Также не откажусь от альтернативных вариантов вывода 2х разных текстов на странице архива.
best_news_entry
, а значение - ID отмеченного поста.the_terms( $post->ID, 'my-custom-taxonomy', $before, $sep, $after );
qtranxf_generateLanguageSelectCode()
поддерживает 2 типа/формата, которые вам должны помочь - image и custom. В случае custom вы можете задать свой format для более тонкого контроля.function my_hide_edit_permalink( $return, $post_id, $new_title, $new_slug, $post ) {
// Если мы на странице нашего custom-post-type-name
if ( 'custom-post-type-name' == $post->post_type ) {
return ''; // возвращаем "пусто" вместо дефолтного html-кода
}
// в остальных случаях возвращаем немодифицированный html
return $return;
}
add_filter( 'get_sample_permalink_html', 'my_hide_edit_permalink', 100, 5 );