How do I make WordPress “Page” link in the top nav bar go to an external URL?
Goto Appearance -> Menus -> Create a new menu -> Add your link as custom link
Goto Appearance -> Menus -> Create a new menu -> Add your link as custom link
This the code I have so far which looks like it does the job, I still wonder if there is a API function for the job: /** * @param (int) $category_id * @param (int) $pagenum * @return string */ function get_category_paged_link($category_id, $pagenum) { global $wp_rewrite; $link = get_category_link($category_id); if ($wp_rewrite->using_permalinks() || $wp_rewrite->using_index_permalinks()) { $link = … Read more
The following should do the trick: <a href=”https://wordpress.stackexchange.com/questions/35141/<?php admin_url(“https://wordpress.stackexchange.com/questions/35141/edit.php?post_type=slides”) ?>”>Slides</a> It’s how it’s done in the source code. The function admin_url() appends the proper admin address. The output of the url should be: http://www.mysite.com/wp-admin/edit.php?post_type=slides
It appears that you have content (pages, posts or widgets) that contain old URL information. An example of a URL that is correct: http://www.hutchisonhaines.co.uk/wp-content/themes/FactoryWP/style.css An example of a URL that is incorrect: http://hutchisonhaines.co.uk.previewdns.com/wp-content/uploads/2012/02/flowers-944×290.jpg The quickest way to fix this problem would be to do a database dump and then run a search and replace program … Read more
The proper way to include styles and scripts is with the wp_enqueue_script() and wp_enqueue_style() functions. The codex pages on both of these functions covers how to use them very well. Basically you just need to give the script the source (do it relative to your current PHP file) of the script/style and a slug to … Read more
In your theme’s functions.php: function wpse52464_admin_ui_fixes() { remove_menu_page(‘link-manager.php’); } add_action(‘admin_menu’, ‘wpse52464_admin_ui_fixes’);
There’s a couple of things that you might be able to do here depending on how you are creating your links. Are you talking about page content or are you working in the theme template. If in the theme template you can do use the <?php bloginfo(‘url’); ?> to get the base path of the … Read more
Use a WP Nav menu or the built in APIs instead. They all have current cat/active/parent highlighting on posts/pages, all out of the box
You would need to edit your theme files. You need to search each files looking for something along the lines of <p>All Posts of: <?php the_author_posts_link(); ?></p> and just change that to <p><a href=”https://wordpress.stackexchange.com/questions/70227/<?php echo get_author_posts_url(get_the_author_meta(“ID’)); ?>”>All Posts</a></p>
Here is my solution. First download this file. Then follow these steps. In shortly Backup/download your database. Upload it to your new site. Copy all wordpress folder including wp-admin,wp-content etc from your old site to new one. Edit the downloaded php file, change the password. you need to change the password in this line. define(‘DDWPDC_PASSWORD’, … Read more