how to show Author information in search results

It’s called Author Rich Snippets. Your link needs to look like <link href=”https://plus.google.com/115911773396772351667?rel=author”/>Your Name</a> The Simple Way To Set Up Author Rich Snippets There are a few things you need in order to step up Author Rich Snippets: A public Google+ profile. Make sure to upload a decent looking profile picture. Google will use this … Read more

Adding a user’s ID behind the tag ref link address

I guess maybe wp_get_current_user(); is what your looking for. Something like this… <?php $current_user = wp_get_current_user(); ?> <a href=”http://mysite.com/mysite/page-<?php echo $current_user->ID; ?>”>go this page</a> http://codex.wordpress.org/Function_Reference/wp_get_current_user — Actually I just re-read the question and maybe your not after the current user? You might want to elaborate the question more so we know the aim better.

Get Link to Feed On Term or Taxonomy

For terms and taxonomies use get_term_feed_link: “Returns a link to the feed for all posts in a given term. A specific feed can be requested or left blank to get the default feed.” See also get_tag_feed_link and get_category_feed_link. For post types see get_post_type_archive_feed_link. These functions are located in in wp-includes/link-template.php.

A link (not in the post) to download a specific PDF file

The pdf is itself an attachment post so in wordpress template hierarchy we can create a template named pdf.php Then you can write following code in it which force download the pdf file. <?php if (have_posts()) : the_post(); $pdf_title = $post->post_title; $pdf_src = get_attached_file($post->ID ); $bytes = filesize( $pdf_src ); header(“Pragma: public”); // required header(“Expires: … Read more

Can WP give a value a post ID?

Add a rewrite rule and extra query vars to handle incoming requests, direct the rewrite rule to a single page post type, create a custom page template for that page, then do whatever querying you need using the query vars set by your rewrite rule.

How to add a class to edit_post_link?

Assuming you are reading this answer in the future (December 2015 or later). Starting from WordPress 4.4.0, The $class argument was added. So: edit_post_link( __(‘Edit’), ”, ”, 0, ‘post-edit-link btn btn-default’ ); See edit_post_link documentation.

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