Can change twentytwelve_entry_meta “by-author” links?

Well for anyone who may be interested, I worked out that the answer, after adding the my_author_rewrite_rules function as above (thank you), is to edit the twentytwelve_entry_meta() function by replacing this: esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ), with this: esc_url( sprintf( __( home_url().’/author/%d’, ‘twentytwelve’ ), get_the_author_meta(‘ID’) ) ), It also means similarly changing the … Read more

How to download files to WordPress?

@Amirreza Nasiri – Yes that is possible. I have used following plugin to import large size files into WordPress Media library. Please take a look at this: https://wordpress.org/plugins/add-from-server/ I have no affiliation with plugin. I had used it for one of my client project and just found it as suitable suggestion for this question 🙂

redirect “about author” code to about page

Use get_userdata() to retrieve all user data. The function accepts user ID. So the following code will give you the user url. <?php php $user_info = get_userdata(1); /* replace 1 with dynamic user id variable in your context*/ echo ‘User url: ‘ . $user_info->user_url . “\n”; echo ‘Users name: ‘ . $user_info->first_name . “\n”; ?>

Link from navbar to categories

To show all categories on a page, you will have to create a new page template. <?php /** * Template Name: Categories Page **/ get_header(); ?> <!– content –> <div id=”content”> <ul class=”category-list”> <?php wp_list_categories( ‘title_li=’ ); ?> </ul> </div> <!– / content –> <?php get_footer(); Now create a new page for categories in WordPress … Read more

Highlight archive link on single.php

As your links are generated by get_archives_link(), this is the place where you have to look. Doing so, by inspecting the source , you will notice that get_archives_link() – itself – doesn’t give you the possibility to add a CSS class to make the highlighting happen. There is of course the filter hook get_archives_link – … Read more

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