• Resolved enricolino

    (@enricolino)


    Hello everyone. I have to create a page that looks like this one:

    https://www.circoloverdi.it/spip.php?rubrique5

    To recreate the other pages of this site which are made with many posts, I used the method of categories on the menu, but in this case there is a text that introduces the category “vociofili” and underneath there are all the posts. Could anyone help me to find the right solution, please?

    Thanks in advance

    Cheers

    Enrico

Viewing 5 replies - 1 through 5 (of 5 total)
  • Enrico,

    You can add the introduction text, using HTML, in the template file. Put it right above the code that displays the posts.

    Thread Starter enricolino

    (@enricolino)

    Could you please be more specific?

    When you go to Appearance > Editor, you’ll want to open the template file that is used for the page in question. Then, find the WordPress Loop in that file. The beginning of the Loop looks like this:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    Above that code, you’ll want to add your introductory text, i.e.

    <p>This is my introduction.</p>

    If the page in question is using the main index.php file, you’ll have to use conditional tags, as shown here.

    Another option could be that you’ve created a page using the “Pages” tab in the WordPress admin area. If this is correct, simply add your text there, on the correct page. This will only work if a) there’s a page created for the live page in question, and b) the template file is set to display the page content above the Loop.

    Thread Starter enricolino

    (@enricolino)

    Hello iamklove,

    thanks for your advice; I’ll try to use this method! I thought about creating a page too, but then I didn’t know how to display the posts under the introduction text which made me decide to use categories instead. I’ll let you know if it works, as soon asI try!

    Thanks again

    cheers

    Enrico

    Thread Starter enricolino

    (@enricolino)

    Thanks a lot, it worked fine!

    Ciao

    Enrico

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mix between post and page’ is closed to new replies.