jwack
Forum Replies Created
-
Forum: Plugins
In reply to: my plugin is causing problem in the media uploader???after taking a break and coming back to this, I found that .toogle is the source of the problem, apparently this is being used within the admin. I changed the name to .toogleSection in my plugin and all is well.
Forum: Plugins
In reply to: my plugin is causing problem in the media uploader???Here is some of the code i’m using.
In the main .php plugin file…
wp_enqueue_script('myscript', '/wp-content/plugins/myPlugin/js/script.js', array('jquery'));The script…
jQuery(document).ready(function() { var showText='Show/Hide Details'; var hideText='Show/Hide Details'; var is_visible = false; jQuery('.toggle').prev().append('<a href="#" class="toggleLink">'+showText+'</a>'); jQuery('.toggle').hide(); jQuery('a.toggleLink').click(function() { is_visible = !is_visible; jQuery(this).html( (!is_visible) ? showText : hideText); jQuery(this).parent().next('.toggle').toggle('slow'); return false; }); });Forum: Plugins
In reply to: Settingg active class for home, pages, and categories problem?…
Forum: Plugins
In reply to: Settingg active class for home, pages, and categories problem?hmmm
Forum: Plugins
In reply to: Settingg active class for home, pages, and categories problem?anyone have any ideas why post_is_in_descendant_category( 2 ) would be true on the home page, causing 2 active links?
Forum: Plugins
In reply to: Settingg active class for home, pages, and categories problem?Here is the funtion for post_is_in_descendant_category…
function post_is_in_descendant_category( $cats, $_post = null ) { foreach ( (array) $cats as $cat ) { // get_term_children() accepts integer ID only $descendants = get_term_children( (int) $cat, 'category'); if ( $descendants && in_category( $descendants, $_post ) ) return true; } return false; }Forum: Fixing WordPress
In reply to: List post tags in sidebarthanks for the help.
Forum: Fixing WordPress
In reply to: List post tags in sidebarThanks for the code, I made a few edits so I could use it to pull in the post tags for meta keywords. I had 2 questions, is there a better way to do this? and how can I get rid of the last comma?
Here is the code…
function get_content($element) { do_action($element); }; function get_post_tags() { global $constant_post_id; $tags = wp_get_object_terms($constant_post_id, 'post_tag'); foreach ($tags as $tag) { $content .= $tag->name . ","; }; echo $content; } add_action('post_tags','get_post_tags');Forum: Fixing WordPress
In reply to: Help! My WordPress Site Has Some Lag Issues???My host seems to think its a plugin, I was wondering if anyone knows if any of the following might cause this issue…
List of plugins…
smart youtube, tdo mini forms, theme my login, theme my profile, tubepress, wp-flv, xbox 360 gamercard.Could it possibly be permalinks?
Its hard to tell when I disable a plugin if its the cause of the lag because the issue doesn’t happen all the time.
Forum: Fixing WordPress
In reply to: Help! My WordPress Site Has Some Lag Issues???im not sure if im doing something wrong with the tracert, I dont fully understand it but it should connect to something, I mean the site still works.
I have sent an email to dreamhost already and Im awaiting a response from them. I sent them an the image of the test results but I have a feeling there going to tell me everything looks fine on our end.
Forum: Fixing WordPress
In reply to: Help! My WordPress Site Has Some Lag Issues???traceroute test 1
1 * * * Request timed out.
2 * * * Request timed out.
3 * * * Request timed out.
4 * * * Request timed out.
5 * * * Request timed out.
6 * * * Request timed out.
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 97 ms 97 ms 109 ms apache2-dap.falcons.dreamhost.comForum: Plugins
In reply to: get_categories child_of multiple categoriesI still cant figure this out…
Forum: Plugins
In reply to: get_categories child_of multiple categoriesCan someone help out on this please?
Forum: Plugins
In reply to: loop through sub cats and postsnevermind, figured it out.
Forum: Plugins
In reply to: loop through sub cats and postswas hoping to do this without a plugin since I only need to loop through a couple categories.