Articles of links

Open link in a new tab checked by default when adding a new link in visual post editor

When adding a link in the WP visual post editor you have to click the settings after adding the link and then click the Open link in a new tab to have it add a link with a target in a new window/tab. I am looking for a way to have this automatically checked by […]

Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions

Currently my theme calls upon get_comments_link() to create the standard anchor #comments to link to the comments below the post, as does the get_comments_pagenum_link() function on paginated comments. I would like to replace the #comments anchor in these functions with any other string, without of course changing WP’s core php files. A simple add_filter to […]

get_site_url is not returning anything?

I’m using the twentyten theme with the bbpress plugin. I have the following in my header.php (twentyten): <div id=”masthead”> <div id=”branding” role=”banner”> <h1><a href=”<?php get_site_url(); ?>”>TaiwanTalk</a></h1> </div><!– #branding –> <div id=”access” role=”navigation”> <?php wp_nav_menu( array( ‘container_class’ => ‘menu-header’, ‘theme_location’ => ‘primary’ ) ); ?> </div><!– #access –> </div><!– #masthead –> get_site_url doesn’t return anything. Any […]

How would I add a link to the profile editing page of the dashboard?

Our passwords are handled by an external LDAP server and the plugin we’re using to therefore removes all references to the ability to change passwords. What I’d like to do then, is add a link to the users profile editing page (where they get taken after clicking on their name) which points to our password […]

How do i set the read more link?

I read the others on the site and i didnt find a working solution. I am using the 20-11 theme and i tried using <–more–> (in visual and html) with no luck, using excerpts and whatever i could find. Nothing work I am viewing the page from the root/homepage. How do i make the read […]

How to check if upload window came from the featured image link?

I need to verify if the media-upload screen came from a click on the “feature image link” on the admin screen. How can i do it? I’ve already change the way the uploader works , but I need to check this because there is a special flow for the featured image upload.

Confusion about how a URL is being parsed

I have a permalink that leads to some custom content like: That will take you to a page that is handled by the file: category-extra-deals.php On that page I grab the last portion of the URL (91103 in the above example) and use that to do a custom database request for the info I […]

How can you add a link to a sidebar description?

How can I add a link to a sidebar description? $sidebar_description = sprintf(__( ‘Sidebar for the <a href=”%s”>%s</a> post’, ‘themetext’ ), get_permalink($post->ID), $post->post_title); register_sidebar( array( ‘name’ => $post->post_title . ‘ (‘ . __( ‘Post’, ‘themetext’ ) . ‘)’, ‘id’ => ‘sidebar-‘.$post->ID, ‘description’ => $sidebar_description, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => […]

How to add wechat (weixin) link to navigation menu?

The profile link of WeChat (or Weixin) has the following format: weixin://contacts/profile/username As you can see, it doesn’t use http:// and that seems to be the reason that it cannot be added to the WordPress navigation menu. Well you can add it, but after saving the menu, the URL field is blank (again). The strangest […]

Add a Menu Link (to a WordPress Page) in the Admin Menu/Sidebar

I am trying to add a link, in the Admin Sidebar, that links to one of the pages I’ve created in the PAGES section. For example, I’ve created an ABOUT page. So in the sidebar I would like a link to “About” that loads this link: post.php?post=7&action=edit Why? I am trying to do this because […]