Mart89
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I just need a name!Perfect! thanks @hudsonvalleywebdesign
Forum: Hacks
In reply to: Assigning individul post Id's to menu itemsThat’s brilliant, thanks once again!
Forum: Hacks
In reply to: Assigning individul post Id's to menu itemsI do have a follow-up question if anyone can help.
This code brings up an error on pages where the ‘product-types’ term doesnt exist. I guess i need to put in something that checks for this term before it runs the code?
Forum: Hacks
In reply to: Assigning individul post Id's to menu itemsThanks guys that was so incredibly helpful. You’ve saved my ass!
For anyone else interested i made a slight addition to the code above from bcworkz, so that it each list-item would have the current or notCurrent class followed by ‘item1’, ‘item2’ etc.
<?php // Get terms for post $currentterm = get_the_terms( $post->ID , 'product-types' ); // Loop over each item since it's an array if ( $currentterm != null ){ foreach( $currentterm as $current ) { } } $terms = get_terms('product-types', array( 'orderby' => 'ID', )); $i = 1; foreach ($terms as $term) { $class = $current->slug == $term->slug ? 'current' : 'notCurrent' ; $class .= ' item'; $class .= $i; echo '<li class="'. $class .'">' . $term->slug . '</li>'; $i++; } unset($current); ?>Forum: Themes and Templates
In reply to: Muliple slideshows in a page Ajax wordpress themeany ideas anyone?
Forum: Plugins
In reply to: Nice Navigation imcompatibility with chrome and safariThe solution for this seemed to be something to do with css,the ul was floated left and removing this seemed to fix the issued
Forum: Plugins
In reply to: Nice Navigation imcompatibility with chrome and safarias it hasnt been updated since 2012, I’m not hopeful for an answer.
I have exactly the same issue with this plugin:
https://wordpress.org/plugins/jquery-vertical-accordion-menu/
Forum: Plugins
In reply to: jQuery click function issueanyone??
Forum: Hacks
In reply to: customising custom field formatActually I was able to achieve what I wanted by just putting the key items and values into separate list items and styling them as i would divs so cheers all!
function modified_meta_matt($list, $key, $value) { return "<li class='my_meta_class_key'>$key:</li> <li class='my_meta_class_value'>$value</li>\n"; }Forum: Hacks
In reply to: customising custom field formatThanks bcworkz, that was really helpful! yeah w3 checker isnt happy about having a div as a child of a ul. I’m going to use it anyway unless anyone has a solution for this?
thanks
Forum: Hacks
In reply to: customising custom field formatThe part of the code I really need to change is
"<li><span class='post-meta-key-3'>$key:</span> $value</li>\n"I just want to remove the list items and add in some divs
Can you tell me what I need to put into my functions.php to allow this to happen?
Forum: Plugins
In reply to: Moving this JSfiddle to my wordpress siteI did. what i meant was this was the output as a result of doing so