Add clickable link on an image

If you’re trying to link the image to the page in the post editor you can click on the image and then click the link icon to set the target. You can do the same thing in HTML (in the editor in source view), in a plugin, or in a theme like this: <a href=”https://wordpress.stackexchange.com/link/to/your/page”> … Read more

Do you use links?

Links are not supposed to be bookmarks, they are more of a convenient way to integrate links in site. The feature is kinda underused (I think blogrolls it single most common usage for it and seems to start to fade) and so under-appreciated. Really there are plenty of stuff you can do with links, for … Read more

Clean links in: the_author_meta(‘description’)

<?php // grab description, // note the “get_”, we’re not echoing the author meta, we’re returning it $user_description = get_the_author_meta(‘description’); // removing all HTML tags: echo strip_tags($user_description); // removing all tags apart from paragraphs: echo strip_tags($user_description,'<p>’); // removing just anchors (i.e. <a> tags): echo preg_replace(array(‘{<a[^>]*>}’,'{</a>}’),array(”,”),$user_description); // removing all links including their text (i.e. <a href=”https://wordpress.stackexchange.com/questions/33568/…”>…</a>): … Read more

Make Current/Active Page Number a Link (WP_LINK_PAGES)

Doesn’t look like there are proper hooks to modify the output as per your requirements. But you could write a function similar to wp_link_pages() and call that in your theme. The following function would do your trick. function custom_link_pages($args=””) { $defaults = array( ‘before’ => ‘<p>’ . __(‘Pages:’), ‘after’ => ‘</p>’, ‘link_before’ => ”, ‘link_after’ … Read more

Change description of my Jetpack facebook shared links [closed]

This part comes from the function comment_form() which is called by your theme, probably in comments.php: ‘comment_notes_after’ => ‘<p class=”form-allowed-tags”>’ . sprintf( __( ‘You may use these <abbr title=”HyperText Markup Language”>HTML</abbr> tags and attributes: %s’ ), ‘ <code>’ . allowed_tags() . ‘</code>’ ) . ‘</p>’, You can filter it out with a simple plugin: <?php … Read more

Format HTTP links

Actually, the extension is irrelevant. When your page is returned, WordPress is setting the content-type for the file in the headers as text/html; charset=UTF-8. This tells any consuming application that the content is HTML, not XML. You need to force WordPress to send the appropriate headers when outputting the XML. This content type is set … Read more

link to single most recent post, regardless of category

This code uses snippet from @Milo to suit your requirement. Replace the code you’ve provided in question with this – <li> <h2><a href=”http://growingedgecoaching.com/blog”>Growing Edge Blog</a></h2> <?php $latest = new WP_Query( array( ‘posts_per_page’ => 1 ) ); while( $latest->have_posts() ) : $latest->the_post(); ?> <h2><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <div class=”forward-link”> <a href=”<?php … Read more

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