• My site has a few posts and more article style post in magazine style plugin. But front page post excerpt box shows category and tags, but when I click on category archive page, category and tags are not showing up. Then I clicked to single article page, author and time shows up, but NO category and tags are showing.. I tried deactivate all plugin one by one, but didn’t work at all. Just in case, I changed to similar theme “Songwriter” theme, but same problem is happened. What should I do?? Please advise me.

Viewing 14 replies - 16 through 29 (of 29 total)
  • Thread Starter kmonitor

    (@kmonitor)

    Thank you for your explanation though, but I really can’t understand that. I visited your site, but I don’t know what’s going on there. I’m a beginner of WP. Sorry for that.

    Ok i create a wranged Rage against the machine widget now
    i put it in a single category for example

    It’s quite hard with the bug now on 4.3, trying

    Example of article:

    “With this work, I tried to outline what is the most important on a touch device, Flow.”

    [wp-dynamic-sidebar id=”ratm”]

    https://blog.digico.fr/news/new-email-template-flow/

    My problem is this template forbids all aside bars ?? I try another one.

    MM, seems bloated and i’m tired, sorry,
    Though i’m sure it’s doable i saw it a work once – matter of theme i guess.

    Again in worst case scenario hardocde aside.php loop, like if category is 32, then add loop – i coded something like that for a client website not on this hard drive.

    Regards,

    Thread Starter kmonitor

    (@kmonitor)

    Thank you so much for your advice. I really appreciate it. Thanks!

    Sorry for the time, i did that once for very customized taxonomies and tags, found it:

    First i controlled sidebar by something like this on sidebar.php.

    <?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
    <div id=”secondary” class=”widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘sidebar-1’ ); ?>
    </div><!– #secondary –>
    <?php endif; ?>

    Then i was using loops according to category, post etc to loop like in this single.php :

    <?php
    ?>
    <?php get_header(); ?>
    <div class=”site-content”>

    <ul class=”liste”>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    after with correct loop parameters, it was loading quite ok,

    I guess you can translate basic french, oui=yes, non=no, so on,

    Regards,

    Thread Starter kmonitor

    (@kmonitor)

    Do you mean any change of code in archive.php? That will be helpful, if you give me some replaceable code. Thank you!

    Aside.php

    This example is quite bad coded but manually control sidebar (by widget) – it’s clear and heavy, just make a new page template, prefilter what you need.

    Then ok for single.php and so on.

    Once the WordPress loop is well set, you can do everything on the front-end side.

    I suggest you make a new page template in the theme, maybe called new-test.php, then activate it only on a single page while you code it.

    Then after, reusable it’s not – because if you want manual widgets you need to know their id of the sidebar. But once the sidebar id for sure – it’s dyanmic and then you can put widgets directly on WP dashboard. Every widget has an id in WordPress database so, you can call it like i did directly by MySQL id:

    test-template.php

    <?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
    <div id=”secondary” class=”widget-area” role=”complementary”>
    <?php dynamic_sidebar( ‘sidebar-1’ ); ?>

    After you did that you can make for example an aside.php – data come from it, you can add widgets at will. Most themes use a construction like that – meaning for example single.php take care of display while still calling data from the general loop.

    Depends how you built your theme – this one was based one twenty-three, so main.php>aside.php>category.php if i recall.

    But this html is a bit deprecated i’m afraid, this was a code based upon an old model, but loop structure to extract data is still the same. And you can still make your aside.php, linked from your own template. So, how to explain, all the mechanics can be reproduced.

    When you do php and code in WordPress, what you must understand is this:

    Data (I ate a burger yesterday) flows from left to right like in this:
    https://goo.gl/XIGRzH

    After, the front-end makes it.

    Show me the code that is the problem, and i can tell you. I think the problem lies in your theme – but i have no idea how it is structured (most themes have different structures of calling this or that even archives.php).

    Put the code on codepen.io, it’s quite cool too. But first find from where the sidebar is called, sometimes sidebar.php, sometimes aside.php or other.

    Then you can “easily” reproduce my code in there to control widgets through specific page templates.

    That’s the basics. I will go for work,

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Category is NOT showing on Archive pages!’ is closed to new replies.