TinaHunter
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to pull custom attributes for product on shop/category pageI just figured this out for myself.
After the <h3> Title, in the “content-product.php” enter this:
<p class="YOURS"><?php $subheadingvalues = get_the_terms( $product->id, 'pa_subheading'); foreach ( $subheadingvalues as $subheadingvalue ) { echo $subheadingvalue->name; } ?></p>
Replace all of the “subheading” with the name of your custom attribute, and use your own class to style it as you need.
The only down side is that every product must have something in this custom field otherwise you get mini error codes underneath each product. I’ve yet to find an if statement that works (will post again if I do… or someone else can pitch in).
Hope this helps someone.
PRO TIP: make sure you copy and paste this file into your theme folder first, and make your changes to that copy, so that they won’t get overwritten when you update the plugin.
Forum: Plugins
In reply to: Woocommerce product carouselThat website looks to be built on this theme: https://themeforest.net/item/primashop-clean-woocommerce-wordpress-theme/4713886?ref=PrimaThemes
The slider is built into the theme as a short code.
I’m in the process of looking for something similar too. If you find anything post it here. ??
Forum: Plugins
In reply to: Hide Disqus form on static pagesIn the Disqus plugin, open up the file “disqus-comment-system/disqus.php”
Scroll down to the “Filters/Actions” section.
You should see code that looks like this:
if ( ! (is_single() || is_page() || $withcomments) ) { return; } if ( !dsq_can_replace() ) { return $value; }
Above, below or in between these lines, insert this line of code:
if ( ('closed' == $post->comment_status) || ('page' == $post->post_type)){ return; }
That should do it.
Cheers
Forum: Fixing WordPress
In reply to: PHP IF statement comes back with syntax errorThanks alchymyth for catching that, but the error shows up well before I made those mistakes.
Must be something else going on….
Forum: Fixing WordPress
In reply to: PHP IF statement comes back with syntax errorI found this on my Host’s FAQ page. Does this effect template pages in WordPress?
PHP Errors: Why I get “.. unexpected T_STRING …” error?
You may get this error because all .html files are parsed as PHP here. So, if your .html file contains “<?” or “?>” tags/text (which shows for file parser that PHP code started), you get this error. This can happen with XML files if they are not using correct content type.
If order to fix this error you need to remove “<?” and “?>” symbols or entire tags with these symbols from your HTML page source.
Forum: Fixing WordPress
In reply to: PHP IF statement comes back with syntax errorHi t310s_
I put in your code (straight copy and paste) and the same error message came back.
Is it possible that my host has an issue with {‘s?
Forum: Plugins
In reply to: [Widget Logic] v0.46 on WP 2.7.1 not saving widget updatesI had this problem too. Just reverted back to version 0.45 and everything works fine again.
Hopefully version 0.47 has a fix ??
Cheers.
Forum: Plugins
In reply to: a plugin to choose tagsThis is fantastic. Thanks for posting the link. Just what I was looking for.
Forum: Fixing WordPress
In reply to: show tags using wp_tag_cloud in particular categoryHey Masin,
It says that this is resolved. Can you post how you figured it out so those of us with the same question can know? ??
Thanks a bunch.
Forum: Fixing WordPress
In reply to: Can’t get 2 style sheets to work – Have tried everythingAlright.
So I downloaded Firebug and it told me that all pages where using the default stylesheet it also showed me that the “link rel” section above where I put in the PHP code above was linking directly to the default stylesheet and effectively cancelling out the code below calling two style sheets.
So I copied everything from the header.php and pasted it into the page2.php template (making sure to delete the call to get_header). Then I changed the “link rel” section to call the new stylesheet and deleted the php code from both the original header and the page template header section.
And it worked. I now have two page templates working.
Thanks Tastic for the hint on Firebug.
Forum: Fixing WordPress
In reply to: Can’t get 2 style sheets to work – Have tried everythingBump!
Anyone?
Forum: Fixing WordPress
In reply to: Can’t get 2 style sheets to work – Have tried everythingbump
Forum: Fixing WordPress
In reply to: Can’t get 2 style sheets to work – Have tried everythingOk. No error this time, but it’s still not working. All my pages are showing up using the default page template and style sheet.
More Info Maybe?
I’ve altered the size of the sidebar from the original style sheet. It was two sidebars. I have made it one side bar with two sizes (thin and wide (like the two sidebars width)). I changed the default style sheet to reflect the thin sidebar. Widesidebar.css is for the wide sidebar.
I created a second page template that is no different except:
<?php
/*
Template Name: Page Template 2
*/
?>I did this because from what I could glean from the other forum forum posts this was the only way to get only certain pages to use the widesidebar style sheet.
Please help.
Am I doing something wrong?
Forum: Fixing WordPress
In reply to: Can’t get 2 style sheets to work – Have tried everythingThank you for responding.
However, when I enter in the text above I get an error message:
Parse error: syntax error, unexpected T_STRING in /home/NAME/public_html/wp-content/themes/Wilderness/header.php on line 23
Can you tell me what might be going wrong?
Thanks so much
Forum: Fixing WordPress
In reply to: [Plugin: Widget Logic] How to call wp-head?Never Mind. I figured it out.
Just add:
<?php wp_head(); ?>
before </head> in your header.php. It fixes the problem.
Thanks WordPress Codex for giving me more documentation than I ever thought I’d get through but desperately needed and used.