• Resolved michouf

    (@michouf)


    Hi Anders,
    I have two problems to submit:
    1) When I navigate to the article pages, the word “archives” appears. Is it possible to make it disappear?

    2) I tried to select only certain articles in a page according to their category from my main menu. For this, I created a page template by modifying index.php. It seems to work, but when the number of articles is greater than that configured per page (6), there appears no navigation arrow to go to the next page.
    The word “archives” always appears, and also PAGE 1 OF 0 (surprising!)

    Changes to index.php to make my page template:
    … <? php $ the_query = new WP_Query (‘category_name = physics’);
    if (have_posts ()):?>

    <div class = “posts group” id = “posts”>

    <? php
    while ($ the_query-> have_posts ()):
    $ the_query-> the_post ();
    get_template_part (‘content’, get_post_format ());

    endwhile;
    ?> …
    thanks a lot for your help

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘archives and pagination’ is closed to new replies.