Tag Info

New answers tagged

0

Do you want to preserve the images title attribute? If not here is a code that fixes that for you: add_filter('the_content', 'remove_title_attr'); function remove_title_attr($text) { // Get all title="..." tags from the html. $result = array(); preg_match_all('|title="[^"]*"|U', $text, $result); // Replace all occurances with an empty ...


1

As per what I understood from your question, you want two things - Listing of all publisher Listing of all books of a particular publisher. Here is code for both. Listing of all publisher $terms = get_terms( 'pa_publisher' ); echo '<ul>'; foreach ($terms as $each_term) { echo '<li>'.$each_term->name.'</li>'; } echo ...


2

Yes you can. See my working fiddle here: http://jsfiddle.net/MonkimoE/0wtgm8a1/ You need to add an id. example: <img class="img" id="imageid"..... Delete all atribute "data-width" and "data-height". because it will added automatically. Add this javascript: (you may change the '$' to 'jQuery' if doesn't work with your theme) <script> var ...



Top 50 recent answers are included