What I figured out so far: I have a query like this: But the source file is just to big. Functions like the_post_thumbnail( medium ) won’t work for me because it’s not just url. It’s an url with image tag wrapper etc. So is there a way just to get the link to the medium (or small) size file? It’s
Tag: wordpress
how to delete completed orders in woocommerce using a my sql query
I want to delete completed all orders in woocommerce by using a single my sql query. Because, I’m having a problem with my WordPress Dashboard. I can’t view the completed orders from the back-end. It’…
WordPress – Custom Change Password page
I’m trying to create custom page for Change Password under Profile. When I store/update the new user password(already change to hash value), it will logout automatically. The new password can be use …
WordPress IF ELSEIF and ELSE Statement
Can someone explain why this does not work? Basically if not the home page or a page with ID 105 show the contact form, else if it is the home page show ‘no side bar’ else for everything else show ‘different side bar’ – it doesnt work as the home page still shows the ‘different side bar’ (and doesnt show
Passing title, url and image on share.php of facebook
I want to share title , image and description on facebook without javascript just by passing these to share.php of facebook. I got some code on this site in question Open source alternative to AddThis AddToAny, ShareThis etcfor Social Bookmarking and I have read the question how to pass custom parameter in facebook sharer link Now I want to combine
If cart is empty, the cart page will redirect to shop page in WooCommerce?
In WooCommerce, I want to redirect the cart page to shop page when the cart page is empty otherwise shows the cart page. Can anyone have the solution ? Here is the code I have tried, but it does not …
Contact form 7 set field value with get request
I want to set a field value with get request example.com/subscribe/?email=asfafs but when i load the page which has the form on it, the form does not show. I get why it could not be showing. Because the form itself could submit a get request as well. I also installed this plugin which should enable me to set a field
How to modify woocommerce_before_cart action
I’m trying to make my woocommerce cart template display as a full 12 column layout. The existing layout is using bootstrap’s col-sm-8 column. I need to change it to col-sm-12. I checked out the relevant woo-templates shown here, and copied the cart.php template into my theme to override. However, it looks like I need to modify the woocommerce_before_cart action to
is_page and query_posts not working correctly
For some reason the following code is displaying both types of posts instead of just the specified post using query_posts. I am not quite sure what is going on, but it appears that the loop is ignoring my condition of is_page(‘news’) or is_page(‘othernews’). Does anyone have an idea why this might be the case? Answer Try this whether this works
get the current page id inside wordpress plugin page
I need to get the current page id in WordPress plugin page outside the loop. And the code I wrote for getting current page id is in my plugin page. I tried many codes, but doesn’t work But it doesn’t work for me . This is also not working. When I try Then a error message appears Fatal error: Call