Wnd
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Customer Reviews] Translation title Submit your reviewYou can also use jQuery to translate the text. The advantage of this is that if you update the plugin to a new version, you don’t have to change the php files again.
The only negative part of this solution is that I can’t find a way to change the text in the popup when fields doesn’t have the correct information.
It would be awesome if the developer add language support to all the text. Right now you can only change the button text, that’s not enough.
jQuery solution:
Add this script to a jQuery document that you have included.jQuery(document).ready(function(){ jQuery('#wpcr_commentform label').each(function () { if (jQuery(this).text() == 'Name: *') { jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF NAME'); } else if (jQuery(this).text() == 'Email: *') { jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF EMAIL'); } else if (jQuery(this).text() == 'Rating:') { jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF RATING'); } else if (jQuery(this).text() == 'Review:') { jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF REVIEW'); } else if (jQuery(this).text() == 'Check this box to confirm you are human.') { jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF THE SPAM CHECKBOX'); } }); jQuery('#wpcr_postcomment').text('HERE YOU CAN PUT THE TRANSLATION OF ADD REVIEW'); jQuery('#wpcr_check_confirm').text('HERE YOU CAN PUT THE TRANSLATION OF REQUIRED FIELDS'); jQuery('#wpcr_button_1').click(function(){ if (jQuery(this).text() == 'Click here to hide form') { jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF THE BUTTON HIDE THE FORM'); } else{ jQuery(this).text('HERE YOU NEED TO PUT THE TRANSLATION OF THE BUTTON TO SHOW THE FORM, TO MAKE THE HIDE AND SHOW BUTTON WORK'); } }); });Forum: Plugins
In reply to: [Intuitive Custom Post Order] Reverses post orderSo, in the admin area your pages look like this:
– Page 1
– Page 2
– Page 3And when you install the plugin the pages look like this in the admin area itself?:
– Page 3
– Page 2
– Page 1Strange, i’m not familiar with that issue. Sorry,
Forum: Plugins
In reply to: [Intuitive Custom Post Order] Reverses post orderTry to order the posts in the query when you load the posts:
<?php query_posts(array ('order' => 'ASC', 'orderby' => 'menu_order'));?>or:
<?php query_posts( "order=ASC&orderby=menu_order" ); while (have_posts()) : the_post(); ?>If it still doesn’t work, try DESC insteed of ASC.
That would be very very nice indeed!
Thanks germundal! Works perfect!
Forum: Plugins
In reply to: [Infinite-Scroll] FIXED: Infinite Scroll on Custom Post PageIs it possible to use it for category.php pages?
Forum: Plugins
In reply to: [WP Simple Galleries] Upload image button doesn't workProblem solved! Thanks to Adrian!
Many thanks! Had the same issue (;
Forum: Plugins
In reply to: WP Simple Galleries: Colorbox doesn't workHey,
I had the same issue, but i found the solution. I used jQuery 1.9.1 on my website. I changed it to a lower version (1.8.1) and that works. Probably colorbox won’t work with the newest jQuery version.
I hope it solves your problem (;
Forum: Fixing WordPress
In reply to: Removing comma's in a custom field from the databaseAllright,.. the code works. It removes the comma so thats great! But how can i change the old price value to the new price value in the database?
I tried:
update_post_meta($postID, $count_key, $newPrice);
and
add_post_meta($postID, $count_key, $newPrice);
But both code lines didn’t work. What am i doing wrong?
Here is my function to delete the comma and return the new price:
function deleteComma($postID){ $price_key = 'price'; $thePrice = get_post_meta($postID, $price_key, true); $newPrice = str_replace(array(','), '' , $thePrice); return $newPrice.'Dollar'; }Forum: Fixing WordPress
In reply to: Removing comma's in a custom field from the databaseI still have a question about the str_replace. How can i use it in a function?
Forum: Fixing WordPress
In reply to: Removing comma's in a custom field from the databaseMany many thanks! I will test it soon (;
Forum: Fixing WordPress
In reply to: Removing comma's in a custom field from the databaseOr is it possible to ignore the commma while sorting?
Forum: Plugins
In reply to: [WP Query Search Filter] Automatic generate meta key optionsAllright! Thanks!