Image width issue in IE [closed]

The issue was related to width: 100%; being applied by WordPress to all images. The code below fixes this issue – i applied this only to IE 8 and lower, as these are the browsers that have issues with the code. img.size-full, img.size-large, img.header-image, img.wp-post-image { max-width: none !important; }

problem with php function error

When $ticket_details[‘assigned_to’]->display_name is not set, get_user_by() has returned not an object but FALSE. First test if you got an object: $user = get_user_by(‘id’, get_post_meta( $post_id, ‘_responsible’, true)); if ( ! is_object( $user ) ) return; $ticket_details[‘assigned_to’] = $user; display_name is always set if there is an user object. At least to an empty string.

Can I specify template to use with the_permalink?

The the_permalink() function links to the single post view for the given post-type. As per the Template Hierarchy, the page used to render the single post view is single.php. So, if you want to modify the template used to render the page when clicking the_permalink(), create/modify single.php, or for a specific post-type, create/modify single-{posttype}.php. If … Read more

WordPress database error Unknown column

There is a SQL query in the theme file /themes/ExtraGrid/content-single.php, and it is asking for a column that doesn’t exist. This seems to be a commercial theme, so we can just guess why that query exists. Maybe you forgot to set a required theme option, or your tables are just incomplete.

Ajax calls in wordpress

your ajax url is wrong i think. ajax link should be admin_url( ‘admin-ajax.php’ ). That means wp_localize_script(‘history_script’, ‘myAjax’, array(‘ajaxurl’ => get_template_directory_uri().’/functions.php’)); will be this wp_localize_script(‘history_script’, ‘myAjax’, array(‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ));

What does WordPress mean by they have full rights to content [closed]

This is pretty off-topic — this site is meant for WordPress programming questions — but here’s an answer anyways. If you’re referring to WordPress.com’s Terms of Service, what you are granting WordPress (actually Automattic, WordPress’s parent corporation) is as follows: By submitting Content to Automattic for inclusion on your Website, you grant Automattic a world-wide, … Read more