pinkhare
Forum Replies Created
-
Forum: Hacks
In reply to: How can I get the parent menu-item object(not ID) in my nav walker class?bcworkz / Thanks for the great tips!
Forum: Hacks
In reply to: How can I get the parent menu-item object(not ID) in my nav walker class?bcworkz / I had tried to use get_post_meta($id, $wrong_string, true) as I didn’t understand the syntax well, and it did not work yesterday. But simply using get_post_meta($id) or get_post_meta($id, $right_string_that_i_need, true) did work. I appreciate for your answer!
Thanks for your answers!
And I’m sorry that there was my mistake.
I have two hosting account, and I updated WordPress from version 4.4.1 to 4.4.2 at the last week on the one of my site.
But the alarm email was arrived for another site of mine. I had not updated to version 4.4.1 on the site. I have updated it for now.
Silly me!Forum: Plugins
In reply to: [WooCommerce] [related_products] shortcode displays nothingThanks for the reply!
I already had tried to add a [product_page] and a [related_products] shortcodes on a same page, but nothing was displayed. But the strange thing is that it works when I added it with a [add_to_cart_url] shortcode, but not with a [product_page].Forum: Plugins
In reply to: [WooCommerce] Undefined variable order-details-item.phpThank you. I’m developing my theme. I had overrided order-details-item.php file in my thems’s woocommerce folder and then the error occured, but now I deleted the file in my theme(actually it was not as different as the original woo-template file at all) and the error has gone. Mysterious!
Forum: Plugins
In reply to: [WooCommerce] Undefined variable order-details-item.phpOkay, so what should we do now? ThankS!
Forum: Plugins
In reply to: [WooCommerce] Undefined variable order-details-item.phpMe too.
Undefined variable: show_purchase_noteoccured!No, I don’t mean it. The popup includes an attachment image automatically which I don’t include in my content by WP editor on the ‘attachment template’ page (attachment.php of a theme).
Forum: Plugins
In reply to: [WooCommerce] The wrong number of comments is displyedThe number of ‘All’ comments is less than it of approved comments.
Switching theme makes no difference. And I had deactivated all the other plugins except WooCommerce, but this problem still have occurred.Forum: Fixing WordPress
In reply to: The wrong number of comments is displyedDeactivating WooCommerce gets rid of the problem!
Forum: Plugins
In reply to: [Theme Check] Does "$wp_filesystem->append_contents" or something exist?I need it for two situations.
First, I have to generate JavaScript dynamically in overrided Walker & Walker Edit classes(as you know, they’re looped files through different menu items), but there is no function like
wp_add_inline_script(enqueue all scripts for different IDs of menu items through the Walker loop and render them simultaneously right before footer). So I have to usefile_put_contentswith argumentflagsinstead to do it. Appending all scripts for different menu IDs to a JS file. (Refreshing flushes the file)Second, I have to use
wp_add_inline_stylein the overrided core function of my extended tag cloud widget, but I cannot do add_action(‘wp_enqueue_script’) for the function that haswp_add_inline_stylein the core widget function. So I cannot usewp_add_inline_style. Also,wp_add_inline_styledoes not work there because my overrided function would be executed too late. That’s because calculating CSS values, class names(tag-1, tag-2, tag-4, etc. Numbers are appearance counts of each tag) and colors of them is done too late after it should have done. Sowp_add_inline_styleis not rendered when it would be. The problems are timing and place to be run.If you have any better way to accomplish above things, let me know it please!
Thanks for your answer.
Yeah, you’re right(__($var, ‘mytheme’)) for the __() function warning. Five of WooCommerce Template files has the variable problem and I fixed it with sprintf, then the problem has gone.
But I also don’t understand the first mysterious situation(examining ghost files), as I can see your code have nothing to do with that specially. That’s why the result is unbelievable to me.
I had deleted all the bbpress template files and the files that have any ‘bbpress’ string on my server then re-uploaded them, but the search forms($file) are still displayed and so the note message(bbpress) is. And that is true even when I did not upload but only deleted all of the files.
Hew~. I don’t know what to do. 🙂
Forum: Plugins
In reply to: [Theme Check] Text domain problems on default HTML 5 searchform codeThere are missing domains here:
(1)<?php echo _x( ‘Search for:’, ‘label’ ) ?>
(2) placeholder=”<?php echo esc_attr_x( ”, ‘placeholder’ ) ?>
(3) esc_attr_x( ‘Search’, ‘submit button’ )==> You should include text-domain there
(1) <?php echo _x( ‘Search for:’, ‘label’ , ‘text-domain’) ?>
(2) placeholder=”<?php echo esc_attr_x( ”, ‘placeholder’ , ‘text-domain’) ?>
(3) esc_attr_x( ‘Search’, ‘submit button’ , ‘text-domain’ )Forum: Plugins
In reply to: [Options Framework] $typography_defaults : Array to string conversion problemThanks, it’s already resolved and I’m closing this topic.
Forum: Plugins
In reply to: [Options Framework] font preview feature please!OK, I got this feature now, so I’m just marking this topic as Resolved. Only the last thing I need is to enable multiple instances of the plugin(actually I use Options Framework Theme version) for using at both my theme & plugin development works.