eobanb
Forum Replies Created
-
Any updates on this? I run a large site and this is causing a lot of problems, and I would hate to have to revert to 3.1.2. In the mean time, the plugin is still listed as being compatible up to 3.1.3…
Forum: Plugins
In reply to: [RecipeSEO] [Plugin: RecipeSEO] Edit function on post does not workI figured it out; line 18 of the recipeseo_editor_plugin.js should be:
tb_show('', baseurl + '/wp-admin/media-upload.php?post_id=1-' + id + '&type=amd_recipeseo&tab=amd_recipeseo&TB_iframe=true&width=640&height=523');
not:tb_show('', baseurl + '/wp-content/media-upload.php?post_id=1-' + id + '&type=amd_recipeseo&tab=amd_recipeseo&TB_iframe=true&width=640&height=523');
Forum: Plugins
In reply to: [RecipeSEO] [Plugin: RecipeSEO] Edit function on post does not workI opened the iframe in a new tab and manually changed the path from ‘wp-content’ to ‘wp-admin’ and now it shows me the proper ‘Update Recipe’ page, so it looks like there’s a typo in the plugin’s source somewhere.
Forum: Plugins
In reply to: [RecipeSEO] [Plugin: RecipeSEO] Edit function on post does not workI’m having a similar issue, except that the popup simply says; The requested URL /wp-content/media-upload.php was not found on this server.’
My guess is this plugin hasn’t yet been adequately tested with Multi-site mode…which is really too bad, since that’s what I’m running.
On further inspection, I just noticed that the names and slugs of these numbered categories actually do not match the IDs, but they’re close. In any case, they still seem to be generated by WordPress as a conflict resolution.
I have encountered this problem as well. We run a complex WPMU site and I haven’t had a lot of time to investigate, but I believe it may be happening when there is some sort of conflict between slugs of categories that are children of other categories.
In WPMU, if you have two blogs and create a category in each with the same nicename, they will end up with the same category ID; presumably so that cross-blog queries of a category are more straightforward. For example:
Let’s say we have a new WPMU install with two blogs, Blog A and Blog B, and a sitewide tags blog, Blog T.
Blog A has a category called ‘Category Alpha’, a slug of category-alpha, and an category ID of 1. Blog B has a category called ‘Category Alpha’, a slug of category-alpha, and a category ID of 1.
However, if the two categories have the same nicename but the category hierarchy (or you could call it ‘path’) is different, then they end up with different category IDs. For example:
Blog A has a category called ‘Category Beta’, a slug of category-beta, and a category ID of 2. Blog B has a parent category called ‘Category Gamma’ (slug: category-gamma), a child of that category called ‘Category Beta’ (slug: category-beta), a path of category-gamma/category-beta, and category IDs of 3 (for Gamma, since it would have been created first) and 4 (for Beta, created second).
Now, even when both Blog A and Blog B have two categories with the same name (‘Category Beta’) and same slug (category-beta), they have different IDs (2 versus 4) because their paths are different (category-beta vs. category-gamma/category-beta).
The problem comes in here: the plugin doesn’t seem to preserve category hierarchy when copying the categories over to the sitewide tags blog, so you potentially end up with a big WP no-no: two categories on the same blog, with different IDs, but the same path. Blog A‘s ‘Category Beta’ (category ID 2) and Blog B‘s ‘Category Beta’ (category ID 4) both get imported into Blog T and both with a path of simply ‘category-beta’. Uh oh.
Somewhere along the line, probably as a last-ditch effort to Stop the Universe From Exploding?, the categories’ nicenames and slugs are set to their IDs (a category named ‘1’, a slug of ‘1’, and an ID of ‘1’, resulting in what seem to be a bunch of ‘random numbered categories.’
I could be totally off on this, but that’s my hypothesis. Hopefully it wasn’t too confusing. I imagine it could be solved rather easily by keeping the original category structure on the sitewide blog.
–Eoban
Forum: Fixing WordPress
In reply to: custom WP_query with tagssilentgap and kharisma:
I’m not trying to be a jerk here or anything, but the OP asked about using WP_Query() and tag parameters, and both of you gave him gave him answers that basically have nothing to do with his question at ALL.
He’s asking about WP_Query(). Not query_posts(). Not get_the_tags().
I happen to be having the same problem; WP_Query() doesn’t return anything even though I know for a fact that I have posts with that tag.
Forum: Plugins
In reply to: Get ID of latest postHey, thanks Jeremy. As I’ve now figured out,
previous_post()
andnext_post()
can also have text prepended, like so:<?php previous_post('<strong>Previous Post:</strong> %', '', 'yes'); ?><br /> <?php next_post('<strong>Next Post:</strong> %', '', 'yes'); ?>
Thanks!