mod-rewrite exception? keep #hash in matching urls?
If your permalink structure is /%postname%/ with a trailing slash, you need to pass the hash like this: /faqs/#b with the trailing slash.
If your permalink structure is /%postname%/ with a trailing slash, you need to pass the hash like this: /faqs/#b with the trailing slash.
You need to set the WP_HOME and WP_SITEURL in wp-config.php in a smarter way. Like this: <?php define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); // add the next line if you have a subdirectory install define(‘WP_SITEURL’, WP_HOME . ‘/path/to/wordpress’); This will solve your your issues with site URLs as they will be set dynamically on based on whatever … Read more
The functions you are using refer to the next or prev paginated set of posts, not a single post, hence the format they are in. Try using get_adjacent_post() instead. <?php $prev = get_adjacent_post(false, ”, true) $next = get_adjacent_post(false, ”, false) //use an if to check if anything was returned and if it has, display a … Read more
It’s not really rewriting the URL in the conventional sense, URL parsing happens entirely within PHP. You can access the query vars in the global $wp_query->query_vars, or with the get_query_var function. Also note that parse_request is the earliest action where this info will be available.
PHP stores this info in $_SERVER[‘REQUEST_URI’].
If you’re trying to create a hierarchal structure with regards to custom post types you’ll need to register a custom taxonomy on a more abstract version of your desired post type. For example instead of naming your custom post type cars name it vehicle. You could then a register a hierarchical taxonomy with register_taxonomy(). In … Read more
If you have a feature request for WordPress, the best way to get it addressed is to add a ticket on Trac. Then developers can adopt the task, patch WordPress, and submit the improvements to the next version. If a Trac ticket has already been created for a particular feature, you can comment on it … Read more
Redirect to another page using contact form 7? [closed]
There’s two problems here: previous_posts_link() echoes the link, rather than returning it. previous_posts_link() returns the full HTML of the link, including <a href=””> etc. The problem with #1 is that for you to be able pass the result of a function to another function (such as rtrim()) as an argument, that function needs to return … Read more
I solved my own problem by debugging all the different functions.php includes. One of the files had some whitespace at the beginning.