Error in get post by met_key

I don’t really understand this sentence– “It must get me only all post from unit post type that in unit type post type,”– and honestly the query looks correct to me, but I would suggest trying a meta_query and specifying the type, as well as disabling sticky post juggling. If you have 6 or more … Read more

Call the latest posts from a custom field group to be displayed on front-page

Okay, so you can paste this on your front page template. I assumed that your $prefix is prefix and products page id is 11 and you want to print last 3 entries. <?php $meta_entries_pre = get_post_meta( 11, ‘prefix_repeat_group’, true ); $meta_entries_int = array_reverse( $meta_entries_pre ); $meta_entries = array_slice( $meta_entries_int, 0, 3 ); if( ! empty( … Read more

Issue with file paths after porting metabox from main theme to child theme

I found the answer my self, the issue had to do with a line requesting the content of the metabox (as expected). The line: ‘template’ => get_template_directory() . ‘/lib/metaboxes/custom_textbox.php’, should have been changed to: ‘template’ => get_stylesheet_directory() . ‘/lib/metaboxes/custom_textbox.php’, According (to the WordPress Codex) will get the path for the main theme. If you want … Read more

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