d910qf
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 404 pops after custom form submission by POSTI didn’t have a field named “name” but there was “hour”, “date” and “minute” – I assume date was the problem.
Thank you for posting this…
Forum: Alpha/Beta/RC
In reply to: WP_Query and custom taxonomiesSent email to wp-hackers list:
The post_type is ignored for taxonomy based queries. See trunk,
query.php, line 2034.-Otto
Forum: Alpha/Beta/RC
In reply to: Custom meta boxes for custom post typesYes you can…
add_meta_box( 'myplugin_sectionid', __( 'Background Image', 'hybrid' ), 'myplugin_inner_custom_box', 'projects', 'advanced', 'high' );
Forum: Alpha/Beta/RC
In reply to: Bylines for custom post typesCheers, I’ll look into the theme files.
I think there is a distinction here between classification of data and the data objects themselves. Taxonomies are classification (be it tags/categories/etc).
I think what you should be doing is thinking of creating a post type of Actors which has as many fields as you like (images, desciptions etc). The taxonomy also called actors is just a reference to a name or id of the actor custom post type. I.e. you might have a custom post called “Brad Pitt” containing whatever info you want to hold for the actor. Then the actors taxonomy will have an entry of “Brad Pitt”.
You can then attach the custom post of “Brad Pitt” to the taxonomy term “Brad Pitt” in the actors taxonomy.
What you do after that is entirely up to you in terms of output – you can get very complex and one “page” doesn’t need to be one entry of Actor/Director type, it could pull information from lots of custom post types and combine it all together in a complex layout.
Anyway that is my take on it!
Chris.
Forum: Plugins
In reply to: Handling Background Tasks With WordPressI don’t know how you got on but Zend has a useful queue class that can process job queues in the way you specified – it can even use amazon SQS.
If you have got somewhere, I’m trying to accomplish same thing so would be interested in progress.
Sorry guys but as good as the plugin is all of them and all the templates hosted on this site must be released with a GPL compatible license. I can’t see why someone bringing this up is an issue (perhaps the way he brought it up?)
Anyway, the plugin has now been released under GPL at the authors homepage so perhaps someone can ask for it to be resubmitted?
Forum: Plugins
In reply to: [Plugin: Post Thumb Revisited] DO NOT USE THIS PLUGIN!!!!!!!!!!!!!Many hours later I figured out Post Thumb Revised was the cause. The word on the internets was that the plugin has been hacked. I could see malicious code all over my clients installation.
Can you provide specifics? I use this plugin regularly without issue. I am happy to go through the code and check – it is doubtful that the plugin code has been altered without anyone noticing.
His website did have a problem with malicious code at some point, but this was dealt with and is a completely seperate issue to what is contained in the plugin.
Forum: Everything else WordPress
In reply to: Trying to use HyperDB to replicate databaseHi – as far as I can tell you need to set up your mysql databases as normal (master/slave etc) and then list each database server in the settings file along with whether it is read only etc.
For example you might have one database server that handles writes, and 2 that handle read only (I think they would normally be master and 2 slaves).
Set up the config file with these settings and away you go….
Am testing at the moment, will report back.
Same problem here…I got a blank screen with the same error in the logs. The plugin has otherwise been working perfectly.
Renaming advanced-cache.php in the wp-content folder me get back in then I logged back in to admin, went to the plugin page (where it errored about the advanced-cache.php not being there), renamed the file back and then it was right again…
Cheers,
Chris.
Forum: Fixing WordPress
In reply to: taxonomy / grouping tags/ anythingupdate – use register_taxonomy in your functions.php of your template and then you can use all of the regular taxonomy functions in wordpress to associate posts with your custom taxonomy.
Forum: Fixing WordPress
In reply to: The Loop inside a function: some thing works, other don’tThis is useful and FYI putting
global $post
at the beginning of your function is all you need…
Forum: Plugins
In reply to: [Plugin: WP Calais Archive Tagger] Superfluous semi colon in tagsActually solution is even more simple:
Change line 109 of opencalais.php from
$val = trim($val);
to
$val = trim($val,”;”);
That should do the trick….
Forum: Plugins
In reply to: [Plugin: Simple Tags] Group TagsNot a simple way – you either need to use conditional statements in php in your template:
<h2>Colors</h2>
<?php $colours = (brown, blue, pink, yellow, orange, red);
$tags = get_the_tags();
foreach ($tags as $tag) {
if (in_array($tag, $colours) {
echo ”- .$tag.”
“;
}
}
?>Something like above, or you need to write a plugin that has additional taxonomies for colours, size, cloth etc.
I might be writing something that allows this soon….
Forum: Fixing WordPress
In reply to: register_taxonomy()This is actually pretty simple once you know how…
Just use register_taxonomy( ‘people’, ‘post’, array(‘rewrite’ => array(‘slug’=>’people’)));
In your templates functions.php to make the template aware of the taxonomy. Then you can use all the taxonomy functions to add/remove/associate posts to terms in the taxonomy (you’ll need to look at wp-includes/taxonomy.php.
Then if you want to use url variables to do something you have the url https://www.blog.com/people/person and can access the ‘person’ by using
get_query_var(‘people’).
This allows you to have any number of https://www.blog.com/taxonomy/term type situations.
Still looking at how to use similar functionality of tags (tag+tag etc) without rewriting all the functions. Still think this should be in wordpress by default – drupal does it really well.