bhoogterp
Forum Replies Created
-
Forum: Plugins
In reply to: [Add Meta Tags] Keywords when using Categories and Tags on PagesAlthough, technically, I would guess that if tags and categories are disabled for pages, the function requesting a list of them would simply return empty anyway… Could be wrong on that, but it might not require any error checking..
Forum: Plugins
In reply to: [Add Meta Tags] Keywords when using Categories and Tags on PagesFeel free to check out the plugin i’m using… there’s others like it, but it’s extremely simple… it registers the taxonomy, and then just a couple short functions to handle them..
Forum: Plugins
In reply to: [Add Meta Tags] Keywords when using Categories and Tags on PagesEnabling the native support uses WP function register_taxonomy_for_object_type.
Source of this function is wp-includes/taxonomy.php.
It appears, while not well documented that I can find, that get_object_taxonomies is where you would want to go..
/** * Return all of the taxonomy names that are of $object_type. * * It appears that this function can be used to find all of the names inside of * $wp_taxonomies global variable. * * <code><?php $taxonomies = get_object_taxonomies('post'); ?></code> Should * result in <code>Array('category', 'post_tag')</code> * * @package WordPress * @subpackage Taxonomy * @since 2.3.0 * * @uses $wp_taxonomies * * @param array|string|object $object Name of the type of taxonomy object, or an object (row from posts) * @param string $output The type of output to return, either taxonomy 'names' or 'objects'. 'names' is the default. * @return array The names of all taxonomy of $object_type. */ function get_object_taxonomies($object, $output = 'names') { ...
Oh, and it wasn’t the 2011 or 2012 themes.. it’s using a variant of an inove theme.. but it was WP 3.5.1 and WPSS 3.1.5.
v3.1.5.
I also was having a problem similar to this..I’d noticed that WP-Supersized was not displaying my single image in the background for the past few months, and almost thought to down-grade, until I found this..
finding this, I checked into the developer tools (Inspect Element) in Chrome and found that this is exactly what it was doing…
The fields failing were different… it was the fit_always, fit_portrait, etc..
I thought about modifying the plugin, or trying something else, but I changed this setting, and suddenly, all of these were filled in. So, I changed it back, and they were still filled in, but the slider_xxx stuff was still blank..
My simple fix was to go to each option page individually and click save options without changing anything. This forced a save of all these fields, and now the plugin works fine again..
It just appears that the many various options are not initialized correctly in this version, and so unless you go to each options page individually, and save each one, it still fails on v3.1.5, because in the supersized call it does: “… , fit_always: , …” With no value supplied for the variable…
Hope this helps. was glad to get this fixed on my site again.
Sufficient code in a test sample, using some absolute position on the icon element to get around WordPress limitations, demonstrated success on a local install..
function add_spam_can() { $i = "/wp-content/plugins/admin-bar-tweak/delete-icon.png"; // Should be path to some nice icon.. also adjust size below $n = wp_create_nonce('bulk-comments'); $x = ""; $x .= "/wp-admin/edit-comments.php?comment_status=spam"; // Should get directory from WP settings... $x .= "&delete_all=Empty%20Spam"; $x .= "&_wpnonce=$n"; $x .= "&_wp_http_referer=/wp-admin/"; $x .= "&pagegen_timestamp=" . date("Y-m-d H:i:s"); $s = ""; $s .= "<div style='display:inline-block;position:absolute;top:82px;left:68px;'>"; $s .= "<a href='$x'>"; $s .= "<img src='$i' width='24' height='24' alt='Empty Spam' title='Empty Spam' />\n"; $s .= "</a>"; $s .= "</div>"; echo $s; } add_action('right_now_table_end', 'add_spam_can',10);
Forum: Alpha/Beta/RC
In reply to: Ctrl-BkSp Not Deleting Last WordWorks in IE9.0.8112.16421
Found the issue w/ the plugin activation…
On my version of PHP, it fails…
eom_admin.php
line 398
Old Version was:
<? endif;
It needed the<?php
prefix instead… Changed to:
<?php endif;
Plugin activates fine now.
PHP Version 5.3.5
Any other thoughts?
Was 5.3.x
Doing the last VC6 install of PHP5 for IIS5.0 (not 5.1) on an old win2k server… php and mysql under IIS.. other than that, standard install, although multitudinous plugins..