Driftless
Forum Replies Created
-
Forum: Plugins
In reply to: [PHP Code Widget] WP_Query loop inside widget errorMakes sense, thanks.
Forum: Plugins
In reply to: [PHP Code Widget] WP_Query loop inside widget errorGot it working with:
<?php $facts = custom_wp_query('3'); //get 3 results while ( $facts->have_posts() ) : $facts->the_post(); $post = $facts->post; echo "<pre>"; print_r($post); echo "</pre>";//This works elsewhere endwhile; ?>
Strange that the previous works elsewhere…
Forum: Plugins
In reply to: [PHP Code Widget] WP_Query loop inside widget errorAnd… it returns the error 3 times, meaning the loop knows there is 3 posts, they just aren’t being shifted to the global $post variable…
Forum: Hacks
In reply to: Pass variable to filter?Thanks for the link. I’ll play around with those techniques. (Though to be honest, I just threw up my hands and went “global” with that bad boy… )
Edit: Though for closure / anonymous functions – I was under the impression they can’t be unregistered as filters…
Forum: Plugins
In reply to: [Geolocation] Debug errorsNice – any chance you’ll put it in the the WordPress Repos? (Don’t like installing plugins from direct download. Too much hassle to keep track of.)
Forum: Plugins
In reply to: [Zotpress] WP_Debug ErrorsUpon activation of plugin, and on every admin (and front-end) page at the top. Also in the admin menu above Zotpress: Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in …wordpress/wp-includes/functions.php on line 2923
If you set wp-config argument
define('WP_DEBUG', true);
should light up like an x-mas tree.(Thanks for the awesome plugin BTW – exactly what I’ve been dreaming up in my head for a while…)
Forum: Plugins
In reply to: Integrating Existing External Database with Custom Post TypesPods might do something similar – but seems like overkill…
Love having conversations with myself…
Forum: Plugins
In reply to: Integrating Existing External Database with Custom Post TypesOr… possibly:
How about custom hooks that append the information from my custom-meta table to the worpdress post like hook in to
wp_get_posts()
… of course the updating would have to all be done externally — or with a custom editing feature…Again – I know this is all theoretical – but if anyone is interested in this concept, I would love some ideas.
Forum: Fixing WordPress
In reply to: Category Id creationCategories and Tags are housed in
wp_terms
table in the database. So if you were tagging your test posts, this would explain why the number jumped up.Forum: Fixing WordPress
In reply to: submit a code?What site? Can you provide more information? What plugins do you have running? (Especially captcha / security related)
Forum: Everything else WordPress
In reply to: www.remarpro.com forum username, profile, account crazinessAlso notice that www.remarpro.com links to different profiles depending on whether you are on the “Forums” tab, or the “Plugins” tab…
Forum: Everything else WordPress
In reply to: www.remarpro.com forum username, profile, account crazinessOOooh… after more scrutiny, the plugin page seems to be linked to Case Sensitive version of the profile slug (which itself is not case sensitive)…
See Exhibit A.
Wow. Ok.
Forum: Hacks
In reply to: Update Function for Post_Date via a Filter or Action ?Shameless plugin plug
Along the same lines – I just released a plugin that does this (updates post dates to attached photo’s EXIF date) in bulk for the post type of your choosing: EXIFize My Dates
Forum: Plugins
In reply to: Integrating Existing External Database with Custom Post TypesAnother possible route… use a middle-man csv file, google spreadsheet, or file hosted on dropbox as a proxy and keep it updated from both sources… though this seems like it might just add a complicating factor.
Forum: Themes and Templates
In reply to: Removing title from a single page or post using Custom Fieldsadl339 –
The code above shows how to check whether a ‘no_title’ custom field has been set, and if it has, then don’t show the title. If it has not, then show the title.
IF you are looking to not show ANY titles EVER – then it is easier to just edit your theme’s template.
Otherwise – start diving into custom meta.