gan35h
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Highlighting Current Category in the Archive and Feeds pageThe styling suddenly worked out of the blue! ??
However, a problem still remains. I have given the following arguments in the wp_list_categories function.
<?php wp_list_categories('show_option_all=All&hide_empty=0&title_li=¤t_category=All'); ?>
I want the ‘All’ option to be visible in any category listing. However, since by default, all posts load, the styling for current_category should also apply to ‘All’. However, since All does not have a category ID, I do not know how to apply the current-cat class to ‘All’.
Any suggestions?
Forum: Fixing WordPress
In reply to: Categories Listing and Highlighting current category itemHi tigtog,
Thanks for your reply!What I have done to get part of the intended result was this:
<ul> <?php wp_list_categories('show_option_all=All&hide_empty=0&title_li='); ?> </ul>
The problem still remains of the current category class activation in CSS. The current_category argument only explicitly adds the category ID.
I am unable to frame a condition that: if the page loaded is the archive of a particular category, then current-cat CSS class for that category should be activated.
Any tips? Thanks!
Forum: Fixing WordPress
In reply to: Using a Blog Template but posts appear elsewhereWhere do I change that? I tried to find the home string in the Twenty Eleven template files, couldn’t find anything that I could change (rather I don’t know if I could change those). The current template for which I’m using doesn’t even have the ‘Home’ in the navigation menu ??
In Settings > Reading, opt to see a Static page as your home page and choose the page that you want. Below that, your blog page can be chosen as the home page.
Forum: Networking WordPress
In reply to: Editing Permalinks for a multisiteQuite amazing Ipstenu. Your solution worked! Again! Thanks a million!
Forum: Networking WordPress
In reply to: Editing Permalinks for a multisiteMust I set this to All in my httpd.conf?
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be “All”, “None”, or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride NoneIn other places in httpd.conf, I found these:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory><Directory “D:/ganeshv/Apache2.2/cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>I had copied whatever WordPress gave me at the start of the multisite installation. This is the current content for .htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule . index.php [L]What changes must I make?
Forum: Networking WordPress
In reply to: Editing Permalinks for a multisiteI tried the ‘month and name’ permalink. No change. Still 404 not found. How do I solve my .htaccess issue/conf issue?
The default permalinks seems to solve the problem but any other permalink means a definite 404 not found page for anything other than the home page.
Forum: Networking WordPress
In reply to: Editing Permalinks for a multisiteActually, now the situation is that any static page I make shows a 404 error. Any new blog I view shows a 404 error. I’m quite certain that these pages exist ??
For now, only my home page loads.
Forum: Networking WordPress
In reply to: Sub-domain paths in MultisiteIt worked! I had to remove the folders that I had made ignorantly. Thanks a ton!
Forum: Networking WordPress
In reply to: Subdomains on localhostOK, this is silly. But I deleted the hosts file and then made a new one using Notepad. AND IT WORKED! WHEW!
Forum: Networking WordPress
In reply to: Subdomains on localhostUsing Apache 2.2.19, but I added this line too. No luck ??
Forum: Networking WordPress
In reply to: Subdomains on localhostOK, so finally going for subdomains on localhost.
Trouble is that I’m getting stuck.
I added 127.0.1.1 local.loc in my hosts file along with its subdomains. I installed Apache with this address.
When I type 127.0.1.1 in my browser, I get the ‘It works’ message. But it tries to look for the address ‘local.loc’ on the internet, which then fails.
I changed my httpd-vhosts.conf file also to include:
<VirtualHost *:80>
ServerAdmin [email address]
DocumentRoot “../htdocs/local”
ServerName local.loc
ServerAlias local.loc
DirectoryIndex index.php index.html index.html index.htm index.shtml
</VirtualHost>Also did this for its subdomains.
Any suggestions?
Forum: Networking WordPress
In reply to: Subdomains on localhostI don’t think I’ve still got it.
So I’ve made the following changes:
Changed hosts file to read:
127.0.0.1 localhost
127.0.0.1 localhost.cornBut does this mean that I have to install wordpress all over again? To point the new database towards this address?
How about this as an alternative? I use sub-folders and use the word ‘blogs’ instead of ‘blog’ but while transferring the site to a web host, I use subdomains where I get to use ‘blog’ again. Would this work?
Forum: Networking WordPress
In reply to: Subdomains on localhost1. So I should change the site1.localhost to localhost.site1 in the hosts file? And so on?
2. I assume I must also repeat those changes in the conf file?
Forum: Networking WordPress
In reply to: Not being allowed to use some terms in Add New SiteAlright, this could be a long day. :/
I allowed sub-domains on my host and pointed them towards individual directories in my wordpress folder. (“../htdocs/wordpress/part1” etc.)
However, I’m clueless about installing Wildcard subdomains on my localhost. I added a line ServerAlias part1.localhost under ServerName localhost in each of the individual setups.
After activating multisite in wp-config, I’m getting this message:
Because you are using localhost, the sites in your WordPress network must use sub-directories. Consider using localhost.localdomain if you wish to use sub-domains.
Any suggestions? Thanks again Ipstenu!