rshupe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: What file to use for Kontera ads?Actually the Kontera code should go between your body tags preferably near the bottom of your page. The file you would need to edit is the footer.php file or a simpler option would be to use a plugin that I wrote.
The plugin can be found at http://www.shupe.ca/articles/wordpress/plugins/kontera-dynamicontext/
Forum: Plugins
In reply to: Kontera plugin didnt workThe problem is your Theme (MW.) The Theme you are using does not contain a call to the wp_footer API hook.
This plugin utilizes the wp_footer API hook to add the Javascript into the footer. If the API hook call is missing nothing will be added to the page’s footer by the plugin.
To fix this all you need to do is add the following code to the footer.php file before the <body> tag:
<?php do_action('wp_footer'); ?>To ensure that compatibility is maximized it is best to make sure the wp_footer API is not wrapped by <div> tags.
Also make sure both check boxes under “Enable DynamicContext” on the options screen are checked.
Forum: Fixing WordPress
In reply to: Problem with rewrite rules returnedSome further detail:
The $wp_rewrite->wp_rewrite_rules() function returns an array of rewrite rules but the order of these rules is different on the two servers. The problem is the last rule on the server that works is:
[(.+?)/?$] => index.php?category_name=$matches[1]
This rule catches everything, the problem is that this rule is not the last rule returned on the server that does not work and as a result the rules after it are not processed, and the url_to_postid() function incorrectly returns 0.Forum: Fixing WordPress
In reply to: Google SitemapI ended up with a very similar solution to achive Google Sitemaps for WordPress. The only addition functionality wise is that mine adds the <lastmod> element to the category output.