
WordPress text widget with text from post for each category woocommerce
How make wordpress text widget with text from post for each category woocommerce?
It's easy!
- install plugin Enhanced Text Widget;
- add code in Enhanced Text Widget textarea;
<?php function show_text($id) { $my_postid = $id; $content_post = get_post($my_postid); $content = $content_post->post_content; $content=apply_filters('the_content',$content); $content = str_replace(']]>', ']]>', $content); echo $content; } global $wp_query; $cat_obj = $wp_query->get_queried_object(); $category_name = $cat_obj->name; switch($category_name){ case 'Test1': show_text(22);break; case 'Test2': show_text(23);break; case 'Test3': show_text(24);break; case 'Test4': show_text(25);break; } ?>
24 марта 2021 / 01:56
tadalafil online https://elitadalafill.com/ tadalafil gel
24 марта 2021 / 05:22
vardenafil- vardenafil tablet, film coated https://vegavardenafil.com/ buy vardenafil over the counter online
25 марта 2021 / 20:35
tadalis sx https://elitadalafill.com/ tadalafil 40 mg daily
6 апреля 2021 / 00:04
Hmm is anyonme еlѕe encounteгing problems wifһ the pictures on thiѕ bblog
loading? I'm trying to figure out if its ɑ pгoblem
onn my end or if it's the blog. Any feedback would be greatly apprecіated.
my websіte; how payday loans work
10 апреля 2021 / 01:15
I'm extremeⅼy impressed with youir writing talents and
also with thе structure to your blog. Is this a paid subject
or did ʏou modify it yourself? Anyway stay up the eҳcellent qualit writing, іt's rare to see a nice weblog ⅼike this onne today..
Аlso visit my site free local dates
13 апреля 2021 / 20:57
single free dating sites without registering
[url="http://freedatingsitesus.com/?"]plenty of fish dating site of free dating [/url]
14 апреля 2021 / 19:43
free local singles
[url="http://freedatingste.com/?"]free adult dating sites [/url]