Erez Lieberman
  • Member for 8 years, 3 months
  • Last seen more than a month ago
How to change the default registration email ? (plugin and/or non-plugin)
3 votes

This will not work on functions.php. You need to put this code inside a plugin. If you don't now to make a plugin for this just use this link. Don't forget to take the update code of this function ...

View answer
Is it possible to recalculate cart prices?
2 votes

Maybe you need to add : wc_delete_product_transients($post->ID); I did something like this in opther project and thats worked: if (is_user_logged_in()) { add_filter('...

View answer
current_post not working - give me -1 for every post
1 votes

Thanks, Pieter. Based on this answer, I made some changes to work on specific category. Here is my final code: <div class="lessonNumber"> <?php class MY_Post_Numbers ...

View answer
Adding Image in readme.txt file of wordpress plugin
1 votes

Rarst - Thanks for your answer. I found that you can't add image at all to the description tab, you can add only video from youtube, vimeo or wordpress in this tab. You can add a jpg , png or gif (...

View answer
Disable loading Thumbnail On Mobile
Accepted answer
0 votes

<?php /* if its not mobile */ if ( !wp_is_mobile() ) { /* load and show the post thumbnail */ the_post_thumbnail(); } ?> You can read on wp_is_mobile here and on the ...

View answer
Javascript in plugin not working
0 votes

Try to write it like this: (function($) {$(document).ready(function(){...});})(jQuery);

View answer
Show more menu items to registered members
0 votes

The code for this will be: <?php if ( is_user_logged_in() ) {wp_nav_menu()} ?> You can read more on menus here and more on is_user_logged_in here

View answer
Translate front page (WPML)
Accepted answer
0 votes

you need to set home page and translate it to all 4 languages and after it go to settings->reading->Front page displays choose the second option "A static page (select below" and choose this page ...

View answer
Content not displaying on page
Accepted answer
0 votes

you need to add the loop before and after and add the function the_content() something like this: <?php /** ** Template Name : Home **/ get_header(); ?> <?php while ( have_posts() ) : ...

View answer
Custom Taxonomy Images with Advanced Custom Fields
0 votes

The code of raison's answer didn't worked for me... My code to get taxonomy name and term id in automatic way is like that: $taxonomy = get_taxonomy( $taxonomy ); $taxonomy_name = $taxonomy->name;...

View answer