Opening Menu link in another tab

When in the Appearance > Menus admin screen, click the Screen Options tab in the upper right corner, then under Show advanced menu properties tick the Link Target box. You’ll now have a check box for each menu item labeled Open link in a new window/tab. That said, many people these days do not take … Read more

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