append special url end of my website urls

its very likely that somewhere in your theme, perhaps in your navigation or footer, you are linking something like <a href=”https://wordpress.stackexchange.com/questions/254739/Contact-Us”> which will then link to the subdirectory. You need to find those issues and fix it with something like <a href=”https://wordpress.stackexchange.com/Contact-Us”> or <a href=”https://wordpress.stackexchange.com/questions/254739/<?php echo get_site_url(); ?>/Contact-Us”> Without seeing code, it’s hard to tell … Read more

Please give me the rewrite rules for my ugly urls

if you are trying to get http://www.myblog.com/currentpage/1 http://www.myblog.com/currentpage/2 then your function should be add_action(‘generate_rewrite_rules’, ‘currentpage_rewrite_rule_222’); function currentpage_rewrite_rule_222($wp_rewrite){ $newrules = array(); $new_rules[‘currentpage/(\d*)$’] = ‘index.php?currentpage=$matches[1]’; $wp_rewrite->rules = $new_rules + $wp_rewrite->rules; } and just keep your query_vars function the way it is. add_filter(‘query_vars’, ‘wpa3537_query_vars’); function wpa3537_query_vars($query_vars) { $query_vars[] = ‘currentpage’; return $query_vars; }

How to echo a dynamic url

There are two workarounds: If the first line you’re mentioning is inside a void function: You have to create a wrapper function and use ob_ functions to get the real link: <?php function echo_link($post, $landing_page) { global $myfy; echo $myfy->get_retrieve_cart_url( $post->ID, $landing_page ); } function get_link($post, $landing_page){ ob_start(); echo_link($post, $landing_page); return ob_get_clean(); } // And … Read more

I changed my url and cant access my site, Help?

If you were attempting a site migration you should have backed up all your files and database tables before changing your URL. When you change your site URL (presumably from the Settings->General option page), you are essentially modifying every link on the site to point to the new URL. If that URL is not setup … Read more

WPMU – How to echo only one URL

Ok I was able to eventually figure it out, what I did was exclude the main blog from the code. <?php if(current_user_can( ‘edit_posts’ )) { global $current_user; $blogs = get_blogs_of_user( $current_user->id ); if($blogs) { foreach ( $blogs as $blog ) { if($blog->userblog_id != 1) { echo ‘<li><a href=”http://’ . $blog->domain . $blog->path .’upload-and-manage-documents/”>My Documents</a></li>’; echo … Read more