Unanswered Questions
2,966 questions with no upvoted or accepted answers
8
votes
4
answers
4k
views
Use subdomain for certain urls
I have the following rules in my .htaccess file on a WordPress (single installation):
# REWRITE FORUMS DOMAIN TO FOLDER
RewriteCond %{HTTP_HOST} ^forums\.example\.com$
RewriteRule !^forums/? forums%{...
6
votes
1
answer
2k
views
Add category to custom post URL
I am trying to create custom post with custom taxonomy and categories. Structure is like:
Product:
Has categories
Has taxonomy
Custom post type create:
function create_alco_custom_post() {
$...
5
votes
2
answers
1k
views
Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
5
votes
2
answers
6k
views
Display all posts from all categories with pagination
Alright, this might be a tricky one to explain but I'll do my best.
At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
4
votes
1
answer
701
views
Wordpress keeps deleting .htaccess file
Recently my wordpress site has been experiencing problems with all pages returning a 404 error.
I tracked this down to the fact the .htaccess file in my wordpress directory keeps disappearing.
When ...
4
votes
1
answer
117
views
How do I get the total number of categories in a list of search results?
I want to display the total count of categories in a set of search results.
For example, "10 posts found in 3 categories." (Assuming that each post has only 1 category.)
Right now, my solution is to ...
4
votes
1
answer
7k
views
Multisite Subdomains result in 403 Forbidden
So I have setup multisite as per the WordPress website page: https://codex.wordpress.org/Create_A_Network
I'm using the latest WordPress 4.8.
Setup
example.com
sub.example.com
All requests for ...
4
votes
0
answers
435
views
display most popular tags of category?
0ne year ago i used this code to show most popular tag of the current category in my sidebar:
function my_tags_from_category( $atts, $content = null ) {
extract(shortcode_atts(array(
'type' => ...
4
votes
1
answer
2k
views
Site redirects to wrong url when saving settings
I have a subdomain:
https://blog.example.com/
I forcibly redirects to subdirectory:
https://www.example.com/blog
By changing site URL and some RewriteRule on .htaccess.
Now the website and admin ...
4
votes
1
answer
297
views
WordPress Multisite - Multiple subfolders for blogs
I created a network in blog.animals.com, the network is running fine. I can set up blogs like blog.animals.com/chimpanse. This is also working. I like to have multiple (2) subdirectories for each blog,...
4
votes
2
answers
3k
views
Wordpress multisite subdirectory redirect infinite loop issue
Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
4
votes
3
answers
2k
views
Static raw HTML page
On the server there is a static HTML page example.html in my root folder of the WordPress install. Now when a user types www.example.com/example.html I want WordPress to be smart and bypass all normal ...
4
votes
1
answer
1k
views
Custom taxonomy on permalink
I have a long time problem and look forward for your help.
I have a custom taxonomy of "city" (it is no hierarchical like tags).
I just would like my URLs to look like this:
/%city%/%category%/%...
4
votes
0
answers
2k
views
get_permalink returns default link
I hope you can help me.
So I'm using /%postname%/ as permalink structure, and my htaccess looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /develop/...
4
votes
0
answers
194
views
permalinks with get variables
I'm trying to create my own permalinks with wordpress rewrite API. I have been registering my get variables as it follows
add_filter( 'query_vars','driver_vars' );
function driver_vars( $vars ) {
...