BrenFM
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: flash uploader is not workingDefinitely having this problem too… although it seems now to also be occurring on another site that is 2.8.5. Perhaps something to do with the latest Flash update more than WP?
Forum: Plugins
In reply to: [Custom Field Template] [Plugin: Custom Field Template] Dynamic select listyes absolutely. Use the type=select and code option. I have used:
[Programmes] type = select code = 0 multiple = true multipleButton = true
I then put this into the PHP Code section of the plugin options (in code #0):
<?php global $wpdb; $items = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts where post_type = 'programmes' and post_status = 'publish' order by post_title ASC"); $i = 0; foreach ($items as $item) { $values[$i] = $item->ID; $valueLabel[$i] = $item->post_title; $i++; } ?>
Of course you just change the code = 0 line to whatever the relevant code snippet identifier is.
Is “News” the label of your custom post type, or the name (slug)?
Normally I’d use “News” as the label (which appears in the menu in the dashboard) but the actual name (or slug) would be all lowercase – i.e. “news” (without quotes). The latter is what should be used in the the Custom Post Type field.
Could make a difference to you?
Depending on your storage requirements/limitations, I tend to use the file fieldtype for PDFs and upload them to the WP media library. Then I use the wp_get_attachment_url in my template.
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Definite bug: values from keys removedNope… still having issues with this – I’ve put up a new thread (probably frowned upon by the community – sorry!) as this has been marked as resolved, and my issue is slightly different to above.
I just upgraded to the latest version of the plugin after seeing this issue… seems to have fixed the problem.
Forum: Plugins
In reply to: [Plugin: Custom Field Template] Definite bug: values from keys removedYeah I’ve noticed some odd behaviours too. In one of my templates if I put too much content into a textarea with tinyMCE = true then the switching between templates plain old doesn’t work.
Also I’ve just spotted that if I use a fieldset_open and fieldset_close to group data together, any form elements with the multiple=true and multipleButton=true don’t function correctly, i.e. I only get the option to enter ONE value. (noticed this with type=file and type=select at least).
I can work around both of these but just thought I’d point them out.
I DO have to admit that my cutsom fields are poorly named (mainly in the interests of keeping them human readable for our client) and have spaces all through them ([Header Images] instead of [HeaderImages]). Not sure if this relevant or not though!
Forum: Plugins
In reply to: [Plugin: LiveHelpNow Help Desk] Simple and powerful@scaso – Yes WP is free. But WP is not a live chat helpdesk solution.
For anyone who cares… I’ve just installed this plugin for a customer who is still running 2.92 and they seem to love it. (They’re a tech support company) I joined in testing the LiveHelpNow system with them and it seems to be pretty good… The plugin means it installs easily into a WP sidebar as a widget with a minimum of fuss.
For each template you create, you can specify which custom post types to allow the template to show on. Look for the field called “Custom Post Type (comma-deliminated):” and type in book (or whatever custom content type you wish to use it on)
Hope this helps!
Forum: Fixing WordPress
In reply to: Limit Search Results to Custom Post Type?I’ve used the following. In it’s raw state, all you need to do is put &type=post_type (i.e. &type=movies) on the end of the URL. You could probably do this with a drop down/radio buttons on your search form.
function mySearchFilter($query) { $post_type = $_GET['type']; if (!$post_type) { $post_type = 'any'; } if ($query->is_search) { $query->set('post_type', $post_type); }; return $query; }; add_filter('pre_get_posts','mySearchFilter');
Forum: Plugins
In reply to: [Flutter] [Plugin: Flutter] Has development stopped on this project?i’ve been testing (quite succesfully) a combination of Custom Post Type UI (https://www.ads-software.com/extend/plugins/custom-post-type-ui/) to rapidly dev custom post types and Verve Meta Boxes (https://www.ads-software.com/extend/plugins/verve-meta-boxes/) for custom fields. Most rapid and user friendly method I’ve found so far.
Word of caution though – it’s obvious some of you are really stuck because of lack of support for Flutter. There are no guarantees of future support/dev on these (or any?) plugins either. Sometimes it’s just easier in the long run to bite the bullet and learn how to do it from the ground up by coding yourself.