WordPress: How to get the current logged in author page URL?
<?php global $current_user; get_currentuserinfo(); echo get_author_posts_url($current_user->ID); ?>
<?php global $current_user; get_currentuserinfo(); echo get_author_posts_url($current_user->ID); ?>
To be ON TOPIC on the QUESTION (firefox) i dont think the approach to use delicious as intermediate step is preferred because: you lose the hierarhical taxonomy applied in firefox (they way you structured things) you lose the favicons as gathered in firefox you lose the information added by dividers between links you lose information … Read more
WordPress is strongly opinionated about using absolute URLs. Doesn’t mean it’s better but it’s a choice is makes. The common way to handle it is replace as necessary in database. Please note that if you run replacement on all of database it is extremely important to use serialize–aware tool, or you risk corrupting the data.
Well, started as a curiosity, ended up doing a plugin… : After finishing, I went to look in WordPress repository and…yes, there’s already one that does it: Easy Blogroll Image : At least, I took a different approach and did something different. Featured Link Image – [edit: released in the WordPress repository, link updated]
Ok I came up with this add_action( ‘wp_loaded’, ‘my_create_questionnaire_link’); function my_create_questionnaire_link(){ // this check is for demo, if you go to http://yoursite.demo/?create-my-link, you will get your unique url added to your content if( isset( $_GET[‘create-my-link’] ) ){ // This filter is for demo purpose // You might want to create a button or a special … Read more
I suggest making it private (‘public’ => false when registering the post type). You could club it with ‘show_ui’ => true to still display the admin interface. See the codex for register_post_type for full reference http://codex.wordpress.org/Function_Reference/register_post_type
Assuming you’re using wp_nav_menu() to display your navigation you could apply a walker that looks for css classes: $items_wrap = ‘<nav class=”…”>’; $items_wrap .= ‘<ul id=”%1$s” class=”%2$s”>%3$s</ul>’; $items_wrap .= ‘</nav>’; wp_nav_menu( array( ‘container’ => false, ‘container_class’ => false, ‘menu_class’ => ‘…’, ‘echo’ => true, ‘before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => … Read more
You need to use the wp_enqueue_script function (in your functions.php file) to call the relevant scripts you need. It allows for both built-in libraries and to add any custom that you’re including in your theme.
It’s commonly activated through: add_filter( ‘pre_option_link_manager_enabled’, ‘__return_true’ ); The suggested Link Manager plugin only contains this code line.
The easiest way is to use the plugin TinyMCE Advanced. Enables the advanced features of TinyMCE, the WordPress WYSIWYG editor. In its configuration page (Settings > TinyMCE Advanced), you’ll find this option: That option will convert the pop-up window of the “Insert/Edit Link” button into this: