• Hi,
    I need help with annoying me case.
    I’m creating the website for a magazine which consist some articles. The posts category I have in widget on the right site of web
    Magazine 1
    Magazine 2
    …….
    When I choose of from the list in the main streen I have nice a nice view of meta articles: https://imgur.com/a/zIp319Q. The link is: website\category\magazine
    I want to put exactly the same datas (shapce, css) inside the home page, just after the content (like this: https://imgur.com/a/8lFGINp)
    How can I do this? Are there any widgets? Or do I need to add something in page.php/function.php?
    Thank you for any help,

    michael

    • This topic was modified 5 years, 3 months ago by poczatek.
Viewing 3 replies - 1 through 3 (of 3 total)
  • @poczatek – If the content you want to add to the home page is from a widget being used elsewhere (as least from my understanding of your concern), you would need to have a widget area available on your home page to insert into.

    If there is not a widget area there to be used, I would suggest looking to the theme author for assistance in how best to add a widget area into that space.

    ~Cais.

    Thread Starter poczatek

    (@poczatek)

    Hi Cais,
    thanks for reply.
    I was looking for on other forums and I almost find: “include content of one page in another”: https://stackoverflow.com/questions/4090698/wordpress-include-content-of-one-page-in-another.
    I checked Michaels idea. It works’s fine but only with posts. I need soulution for categories I suppose.
    function show_post($path) {
    $post = get_page_by_path($path);
    $content = apply_filters(‘the_content’, $post->post_content);
    echo $content;
    }

    and this after content of fomepage
    <?php show_post(‘about’); // Shows the content of the “About” page. ?>
    <?php show_post(‘products/widget1’); // Shows content of the “Products > Widget” page. ?>

    Thread Starter poczatek

    (@poczatek)

    Ok, I didn’t manage it 🙂
    I checked some widgets but can’t find any usefull.
    I suppose I can’t embed content to my page cause it’a a category/newspaper/news-1 not a poge or post.
    Do you have any idea of the widget which embed content of generated post?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘categories list in post’ is closed to new replies.