Trybing to retrieve text widget content (1 post)

  1. locodiablo
    Posted 5 years ago #

    I have a text widget: id = text-18, and I want the TITLE and TEXTWIDGET content from that widget to appear on my customised home template. I have little or no php knowledge but good HTML and CSS, so once successfully retrieved i can lay them out however I need. Any help much appreciated. It seems simple enough to do this with single page content, e.g:

    <?php $my_query = new WP_Query('page_id=52'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>
    <?php endwhile; ?>

    ...but I can't find anything for text widget content.

Topic Closed

This topic has been closed to new replies.

About this Topic