Hot answers tagged

4 votes
Accepted

Make PHP work with HTML tags

From your code the proper structure would be if ( is_singular() ) { if (get_post_meta(get_the_ID(), 'square_image', true)) { echo '<img src="' . get_post_meta($post->ID, '...
user avatar
2 votes
Accepted

Finding the screen id of a page generated with add_menu_page

The function add_menu_page return the hook suffix that inform you about the current page. A simple example to get the hook suffix. public function add_menu_page() { $page_hook_suffix = ...
user avatar
  • 16.6k

Only top scored, non community-wiki answers of a minimum length are eligible