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 ...


0

I couldn't find any other way to resolve this problem. i tried a lot of thing to add link to the category menu but without any success.


1

When adding an external link you need to include HTTP:// or HTTPS:// at the start of the URL to link to an external domain. Otherwise the link will be added onto the current domain.


0

If you mean Links in admin menu then run /wp-admin/options.php find key link_manager_enabled and set value to 1. Save.


0

You could create a single wordpress page with a PHP or meta redirect to the final URL. Then each of your blog posts would link to that single page. It would work, but I reckon that once you got past about 50 or so outgoing link pages it would get pretty hard to manage easily. A better alternative as it would be more managable would be some customised ...


0

I am guessing that you are looking at code generated by wp_list_categories() based on the class names, but I can't say for sure. If that is the case, then the link is probably generated here: $link = '<a href="' . esc_url( get_term_link( $category ) ) . '" '; Meaning that you could probably alter it with this filter: $termlink = apply_filters( ...



Top 50 recent answers are included