Append a query string to the end of every URL
The problem is that I used the wrong type of quote marks. You cannot see it in my first post because apparently they were changed when I pasted in the code.
The problem is that I used the wrong type of quote marks. You cannot see it in my first post because apparently they were changed when I pasted in the code.
First, I’d recommend using “pretty permalinks” over the default query-string structure. This will eliminate most of your problems from the getgo. It will turn your http://www.example.com/?cat=15#post-170 urls into http://www.example.com/category/category-slug/#post-170 and the browser will move correctly to the post’s position in the page. That said … Yes, you can remove the trailing slash. The trick is … Read more
Posting as an answer from the @OneTrickPony comment above: Verify that mod_rewrite is enabled on your server. Assuming that mod_rewrite is enabled, ensure that the root WordPress install directory is WordPress-writeable, or that, if it exists, the .htaccess file in the root WordPress install directory is WordPress-writeable. (See file permission scheme for WordPress, and Hardening … Read more
If I’m understand the question right…. first login to the admin section. then click on “categories” its in the “Posts” accordion box. When your there you’ll see all your categories. Next, following your example, you need to make “current”, “future”, and “past” all children of “tasks”. this should achieve the desired URL. Let me know … Read more
For those of you without the required sql knowledge. The steps below can be used to change your main site url variable on a network installation. Assumption: Windows Operating system MySQL Admin basic tasks WinGrep Steps: Download mysql dump.sql of your full wordpress database While using wingrep find all matches for @url then replace with … Read more
For one, you can’t call template files directly as you’re doing… If you want the page somepage, you should call it directly, with the query string arguments added after a trailing slash. Look into the function add_query_arg() – its a much more bulletproof way of tacking GET variables onto the end of WordPress urls. For … Read more
Regularly You have this: <?php edit_post_link( $link, $before, $after, $id ); ?> In this example use “echo” <?php echo $post->ID ?>”> Instead: <?php $post->ID ?>”>
The easiest way is to use the Cache Image plugin, which ‘sideloads’ images in your posts that are from other domains. I’ve had mixed results, mainly because it seems to not work well for thousands of posts and images – if your site is smaller you may have better results.
you can set the permalinks to %postname%, however this would change the permalinks for the whole site; and you can set the individual page permalink, which is normally derived from the page title, when you edit the page. btw: pages don’t have a category base.
The global $wp_query object is not what you are looking for by the time you get to single.php. Instead use global $wp object. Try changing your code to this: global $wp; if (array_key_exists(‘myvar’, $wp->query_vars) && isset($wp->query_vars[‘myvar’])){ echo ‘custom variable recognized’; } print_r($wp->query_vars);