germanliu
Forum Replies Created
-
Forum: Plugins
In reply to: [WP MVC] [Plugin: WP MVC] pretty URLsAny idea where to start????
Forum: Plugins
In reply to: [WP MVC] [Plugin: WP MVC] pretty URLsHi, love this framework!!! Thank you very much.
I have been trying to implement pretty urls as shown here: http://wpmvc.org/documentation/65/pretty-urls/
with no success.
I have added:
function to_url($yachts) {
$slug = $yachts->yacht->yachtName;
$slug = preg_replace(‘/[^\w]/’, ‘-‘, $slug);
$slug = preg_replace(‘/[-]+/’, ‘-‘, $slug);
$slug = strtolower($slug);
return ‘yachts/’.$yachts->yacht->yachtId.’/’.$slug.’/’;
}To the Model.
And
MvcRouter::public_connect(‘yachts/{:id:[\d]+}.*’, array(‘controller’ => ‘yachts’, ‘action’ => ‘show’));to routes. What am I missing???
$yachts is a simplexml object.
Thanks in advance!!!
GermanForum: Fixing WordPress
In reply to: [WP Customer Reviews] [Plugin: WP Customer Reviews] DuplicatesHi, I have the shortcode [WPCR_INSERT] on a widget area and it duplicates the review on the actual post/page. An example can be found here: http://ritzycharters.com/www2/yachts/crystal-clear/
I have unchecked Enable WP Customer Reviews for this page on that specific post/page and nothing.
The plugin is great but this is stopping me from using it.
Any suggestions?Hi, I have the shortcode [WPCR_INSERT] on a widget area and it duplicates the review on the actual post/page. An example can be found here: http://ritzycharters.com/www2/yachts/crystal-clear/
I have unchecked Enable WP Customer Reviews for this page on that specific post/page and nothing.
The plugin is great but this is stopping me from using it.
Any suggestions?Hi, I have the shortcode [WPCR_INSERT] on a widget area and it duplicates the review on the actual post/page. An example can be found here: http://ritzycharters.com/www2/yachts/crystal-clear/
I have unchecked Enable WP Customer Reviews for this page on that specific post/page and nothing.
The plugin is great but this is stopping me from using it.
Any suggestions?Joost, with the latest update (1.2.5) I went back to the beginning. I can see the sitemap at: http://ritzycharters.com/sitemap_index.xml but google webmaster tools says: General HTTP error: 404 not found.
I will add again the code you gave me and see what happens. It would be nice to have this resolved in next update π
Thanks!
Joost, it worked! Thank you very much. Would you include this in next update? If not I will loose it.
For everyone else, I ALSO added the following to the .htacces:
# WordPress SEO – XML Sitemap Rewrite Fix
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
</IfModule>
# END WordPress SEO – XML Sitemap Rewrite FixJoost, it worked! Thank you very much. Would you include this in next update? If not I will loose it.
For everyone else, I ALSO added the following to the .htacces:
# WordPress SEO – XML Sitemap Rewrite Fix
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
</IfModule>
# END WordPress SEO – XML Sitemap Rewrite FixFor me too… but not for google’s webmaster tools
Hi, I am trying to submit my sitemap to google webmaster tools but a General HTTP error: 404 not found HTTP Error: 404 appears. If I check my sitemap url I can see it: http://ritzycharters.com/sitemap_index.xml
any suggestion?