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;
function show_text($id)
$my_postid = $id;
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = str_replace(']]>', ']]>', $content);
echo $content;

global $wp_query;
$cat_obj = $wp_query->get_queried_object();

$category_name = $cat_obj->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;

Теги: , , ,

Дата: 6 июня 2014

Автор: Аноним

Комментарии: 67

Комментарии: 67

  1. vardenafil- vardenafil tablet, film coated https://vegavardenafil.com/ buy vardenafil over the counter online

  2. tadalis sx https://elitadalafill.com/ tadalafil 40 mg daily

  3. 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

  4. 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

  5. single free dating sites without registering
    [url="http://freedatingsitesus.com/?"]plenty of fish dating site of free dating [/url]

  6. free local singles
    [url="http://freedatingste.com/?"]free adult dating sites [/url]

Оставить комментарий



Ваш e-mail не будет опубликован.
Обязательные поля помечены *

Разрешенные HTML теги:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>