MattV
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Redirecting non-www to www revisitedOk that′s very clear ??
So far I′ve this:
- htaccess: no option, this will cause an infinite redirect loop
- wp databse: very risky, better not mess with it
Would the other options be a solution? (Point 3 and 4 in my first post: a new entry in the domain mapping plugin or adding a CNAME record)
(There are so many questions regarding this topic that I thought it would be good to cover all the options in one single thread. Also for others who′ll have the same question. I really aprictae your help!!
– Thanks!)Forum: Networking WordPress
In reply to: Redirecting non-www to www revisitedI′ve moved an exisiting site from a single WP install to WP Multisite. The old URL always had the www included, like:
www.domain.com
For continuity I′d like to keep the same URL structure (with the www inluded I mean).
If editing the DB is not a good idea, would any of the other options (htaccess/cname) be a “preferred” solution?
Forum: Networking WordPress
In reply to: WP MU Domain Mapping plugin not showing up in networkThanks so much Andrea, it works now ??
The domain mapping sub menu still doesn′t show up under the Tools menu of the subsite, but I don′t need that anyway.
Forum: Networking WordPress
In reply to: Primary domain in a non-hierarchical networkBrilliant, everything is clear now. Thanks again and I′ll close this thread.
Forum: Networking WordPress
In reply to: Primary domain in a non-hierarchical networkThanks Andrea, I had that set up in mind as well but I didn′t find anything about that approach in the forums, so that′s why I started to ask myself it was a good idea.
Forum: Installing WordPress
In reply to: 2.8 Crashed My Site!!! Using Options theme.Only version 1.2 of Options Theme will break when upgrading to WordPress 2.8 – version 1.3 works just fine
Here′s an official fix for v1.2 provided by Justin in the Hybrid Forums:
Change this code in /app/options.php:
function op_all_cats() { $all_cats = get_all_category_ids(); foreach($all_cats as $key => $value) : $all_cats[$key] = get_cat_name($all_cats[$key]); $all_cats[$key] = str_replace("&", "&", $all_cats[$key]); $all_cats[$key] = str_replace("&","&", $all_cats[$key]); endforeach; $all_cats['none'] = false; return $all_cats; }
To:
function op_all_cats() { $cats = get_categories(); foreach ( $cats as $cat ) : $return[] = $cat-> name; endforeach; $return[] = false; return $return; }
Be aware that Options Theme has been discontinued, so sooner or later it just won′t work anymore as WP keeps on rolling out new features.
Consider joining the Hybrid Theme club. It′s a great theme and has a very active support community: https://themehybrid.com/
Forum: Themes and Templates
In reply to: Portfolio – WPESP ThemeHi all,
Just a warning: be aware that this theme contains Google Analytics tracking code. This means that the owner of that account can check the statistics of every website that has this theme installed.
To remove the tracking code, do the following:
- Open the
footer.php
file in thewpesp-portfolio
theme folder - Scroll down to the bottom and select the following code:
<script type="text/javascript">$(document).ready(function(){$.getScript('https://www.google-analytics.com/ga.js',function(){if (typeof(_gat) == 'object'){var pageTracker = _gat._getTracker('UA-6031180-2');pageTracker._initData();pageTracker._trackPageView();} });});</script>
- Delete it :))
I left a comment onthe theme author′s blog 3 weeks ago about this issue, but it was never published.
Anyway, it′s a great theme, so don′t let this stop you from using it!!