advanztek
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: show post in frontend to only the author@corrinarusso I want to archive that in the frontend not the backend.
Thanks
Forum: Fixing WordPress
In reply to: show post in frontend to only the authorOk I’ll check it out, thank you.
Forum: Fixing WordPress
In reply to: show post in frontend to only the authorHi @corrinarusso, thank you for your help the other time,
I’ve been able to get everything working the plugin is working perfectly, this is the site [ redundant link removed ]. the look up form is at the header. What am actually trying to achieve now is when a user add products he should be the only one to be able to view the product. Maybe use session.Thank you looking forward to your reply.
- This reply was modified 5 years, 4 months ago by Jan Dembowski.
Forum: Fixing WordPress
In reply to: show post in frontend to only the authorOK thank you for your time,
I’ll try it out and give you the feedback.
Forum: Fixing WordPress
In reply to: show post in frontend to only the authorThank you for your reply @corrinarusso am using the selected details to query an external API.
Forum: Plugins
In reply to: [Featured Image from URL (FIFU)] Image does not display unless i updateFor sure i’ll five stars for you.
Forum: Plugins
In reply to: [Featured Image from URL (FIFU)] Image does not display unless i updateThank you @marceljm, it worked like magic
Forum: Plugins
In reply to: [Featured Image from URL (FIFU)] Image does not display unless i updateThat’s exactly what i mean, everything is working fine, it’s just that i have to click Publish/Update button before the image displays in the front end, can this work automatically without me clicking Publish/Update button?
this is my code
$string = “Air Filter”;
$slug = strtolower(trim(preg_replace(‘/[^A-Za-z0-9-]+/’, ‘-‘, $string)));
$product_array=array(
‘post_title’ => ‘Air Filter’,
‘post_content’ => ‘Air Filter’,
‘post_status’ => ‘publish’,
‘post_type’ => “product”,
‘comment_status’ => “opened”,
‘post_name’ => $slug,
);// Create a simple WooCommerce product
$post_id = wp_insert_post( $product_array );// Setting the product type
wp_set_object_terms( $post_id, ‘simple’, ‘product_type’ );wp_set_object_terms( $post_id, 69, ‘product_cat’ );
$url = “https://WWW.SHOWMETHEPARTSDB2.COM/BIN/IMAGES/BOSCH/5437wsangle01.jpg”;
// Setting the product meta
update_post_meta( $post_id, ‘_sale_price’, 80 );
update_post_meta( $post_id, ‘_price’, 136 );
update_post_meta( $post_id, ‘_featured’, ‘yes’ );
update_post_meta( $post_id, ‘_stock’, ’23’ );
update_post_meta( $post_id, ‘_stock_status’, ‘instock’);
update_post_meta( $post_id, ‘fifu_image_url’, $url);Thank you.
- This reply was modified 5 years, 5 months ago by advanztek.
Forum: Plugins
In reply to: [Featured Image from URL (FIFU)] Image does not display unless i update@marceljm could it be because am using a free version?
Forum: Plugins
In reply to: [Featured Image from URL (FIFU)] Image does not display unless i updatei’ve done that but no change, am actually trying to upload product image.
- This reply was modified 5 years, 5 months ago by advanztek.