• Hi.

    I am a new user of the forum and first of all I would like to thank you in advance for your attention and possible answers.

    My question or problem is as follows.

    I’m using conditionals with logical expressions to show texts and content on certain pages, more specifically on the blog page and on the categories page. For this I write the following code in the corresponding file:

    <? Php if (is_home ()) {?>
    Text and content
    <? Php}?>
    
    <? Php if (is_category ()) {?>
    Text and content
    <? Php}?>

    So far everything is perfect, I get the text and the content in the pages that I want, both the blog and the categories. But the problem I have is that those contents are also shown in the page of each of the pages that make up the blog and category.

    I would like the text or content that I write to be displayed on the first page of the blog and the category, and that it does not appear on successive pages of the page.

    What kind of conditional or logical expression can I use to get this?

    Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use of conditionals and logical expressions.’ is closed to new replies.