bloomcreative
Forum Replies Created
-
Same here. I have de-registered the new JQuery version using:
if ( !is_admin() ) { wp_deregister_script('jquery-ui-core');
but it is still not working. Is there a work-around for this?
Thanks,
J
Forum: Plugins
In reply to: Core Thickbox – tb_showAnswering my own question: It looks like even though the basic functions work normally, tb_show must not be available for some reason. Instead of activating thickbox on the front end from functions.php, I had to use the following:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script src="/includes/js/thickbox.js" type="text/javascript" ></script>
in header.php.
Forum: Fixing WordPress
In reply to: Sort by TAG dropdown list for archives.php file. HELP PLEASE!Fixed. Use get_tags() instead. Does not need the loop:
function display_tags() { $tags = get_tags(); if ($tags) { echo '<p>Filter by: '; echo "<select onChange=\"document.location.href=this.options[this.selectedIndex].value;\">"; echo "<option>Tags</option>\n"; foreach ($tags as $tag) { echo "<option value=\""; echo get_tag_link($tag->term_id); echo "\">".$tag->name."</option>\n"; } echo "</select>"; echo '</p>'; } }
Forum: Fixing WordPress
In reply to: Sort by TAG dropdown list for archives.php file. HELP PLEASE!There is a function in the codex for get_the_tags that creates a dropdown list of tags for sorting: https://codex.www.ads-software.com/Function_Reference/get_the_tags#Function_to_show_tags_in_a_dropdown
I can’t get it to work properly in archives.php (just returns the last tag on the page). get_the_tags needs to be in the loop to work properly but if you put this function in the loop, you get 10+ dropdowns and that’s not what we’re after obviously. I modified the function to this and it still doesn’t work:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Any help out there?
Forum: Plugins
In reply to: [Plugin: Cat Tag Filter] Sort Cats by IDAnswer to my own question:
Line 60: $categories = get_categories(‘pad_counts=1&orderby=id’);Forum: Plugins
In reply to: [Plugin: Google Map Shortcode] Transparency issue?The problem is with themes that use responsive images that are set in CSS to 100%. Look in your css for something like this: img, object,
embed {max-width: 100%;}Just delete img.
Forum: Fixing WordPress
In reply to: Conditional StatementThat works. Thanks a million.
J
There are issues with the Mac Version of Excel and CSV files. Downloaded and opened my CSV with Open Office, re-saved and it works.
J
It was an issue with the Mac version of Excel.
Downloaded Open Office, opened the csv and re-saved it and it worked.J
I’m having the same issue although I’m getting the message that nothing imported. I also think that my file is getting screwed up by my mac version of Excel since sample.csv uploaded perfectly. 21clg, did you resolve the issue using other software to format the CSV?
Thanks.
Forum: Fixing WordPress
In reply to: Listing sub page navigation on single.php in sidebarSolved this myself with Switch and Case instead if else. Much cleaner anyway:
<!-- Get category of current post --> <?php $post_categories = wp_get_post_categories( $post->ID ); foreach($post_categories as $c){ $cat = get_category( $c ); } ?> <?php if (is_single()) { switch($cat->name){ case Classes: $children = wp_list_pages( 'echo=0&child_of=11&title_li=' ); echo "<h2>Classes</h2><ul>".$children."</ul>"; break; case Events: $children = wp_list_pages( 'echo=0&child_of=13&title_li=' ); echo "<h2>Events</h2><ul>".$children."</ul>"; break; } } ?>
Hope this helps someone.
Forum: Fixing WordPress
In reply to: Listing sub page navigation on single.php in sidebarI suspect there’s a problem with the construction of this:
if (is_single() || $cat->name = ‘Classes’ ) {evaluating to “true” regardless of what category the post is in. Maybe there’s just a better way to do this?
Thanks,
J
Jeremy at Truth Media helped me come up with one possible solution:
// get just this months events $month = date('F'); $year = date('Y'); $queryObject = new WEC_Query('calendarID=2'); while($queryObject->haveEvents()): $queryObject->the_event() ; if($queryObject->getStartDate('F') == $month && $queryObject->getStartDate('Y') == $year){ // display code }
Hope this helps someone.
JNathalie,
Wondering if you ever solved your problem. I am trying to solve a similar issue with just showing events for the current month. According to the documentation, a query structured similarly to query_posts should work:
<?php $month = date('F'); $queryObject = new WEC_Query('calendarID=2'.'startDate=' . $month);
This has no effect. Wish someone was listening (Truth Media)
J