Forum Replies Created

Viewing 15 replies - 31 through 45 (of 55 total)
  • w3central

    (@w3central)

    w3central

    (@w3central)

    Sorry, seems like I have answered to the wrong post.
    Did you change something to the theme?

    w3central

    (@w3central)

    I can only guess here. Maybe the tinyMCE code uses a different script for FF and IE. And the script used for FF has been broken while uploading. If that’s the case reuploading that part should do the trick.

    w3central

    (@w3central)

    I don’t believe this is possible with adsense, and that’s why the author decided to change it to his adsense account 5% of the time. I don’t think this is good though, because if someone uses his adsense id on a site with adsense forbidden content he risks having his account terminated.

    “it also pushes down the posts on the mian page as though the posts were not hidden”

    sorry, I don’t quite get what you mean here

    Didn’t this help?:

    Look at the code that says:

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

    That's the start of the loop. Add

    <?php if ( !(in_category('3') && is_home()) ) { ?>

    after that to only show posts that don't belong to category 'test'. To know which category id 'test' has look in your categories tab. Also add

    <?php } ?>

    right before

    <?php endwhile; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>

    @ronny

    If I understand you correctly, you just want less posts to appear on the main index page, eg only the latest 5?

    @missy_tommen

    You don’t need an archive.php. The archives for a category are displayed in this url https://www.sportsklubben.no/alag/?cat=(fill in category id here)

    @ronny

    It’s easier when you post in a new thread as to keep the discussions seperate.

    “unfortunately this is a problem for me. any ideas?”

    In what way is it a problem? It doesn’t work for you? What does it do that you don’t want or what does it not do what you want?

    “But wouldnt ‘Archive for test’ display in the top of that page if you browse categories?”

    You can try this out on your own page. I see (or I think I see) you have 3 categories. When I click on one I don’t think there’s a finnish word for archives on top (or maybe I’m mistaken). In any case, if it would appear that could easily be solved. But as far as I see this problem doesn’t exist with your template.

    “And, then i need to make an link to the category along with the other links in the “menu”.”

    It could be as easy as that yes. Adding a list item with a link to your test category.

    I haven’t encouraged it. On the contrary, have pointed to the problems with that approach.

    Let’s listen to what missy_tommen says about it and wether she has a good reason to prefer pages or if a link to the archives (with or without custom makeup) suffice.

    Right under what you quoted:

    There are other ways to do it though.
    One possibility is not to use a page, but style the archives for category ‘test’ like you would do with the page.

    Btw, if she really wants to have a page, a plugin or page theme is necessary. The other option I gave is the same as you did.

    Uhm, you give exact the same advice as I have given. So if I’m overcomplicating things… =)

    Also, because she doesn’t understand php, it’s rather difficult for her.

    Not showing category ‘test’ in the index page is easy. Look at the code that says:

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

    That’s the start of the loop. Add

    <?php if ( !(in_category(‘3’) && is_home()) ) { ?>

    after that to only show posts that don’t belong to category ‘test’. To know which category id ‘test’ has look in your categories tab. Also add

    <?php } ?>

    right before

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    The second, more difficult problem is with having a page that displays posts. Unless you write a plugin that won’t work. There are other ways to do it though.
    One possibility is not to use a page, but style the archives for category ‘test’ like you would do with the page.
    Another possibility is to create a new page template. But that would involve knowledgde op php.

    https://www.w3central.com/apache/redirect-to-the-www-version/

    It’s not completely the same problem you’re asking about (as I don’t know your current and previous url structure) but you’ll be able to figure it out with that link. Make sure it’s a 301. The only difficulty might seem finding an expression that matches what your url looks like. But with the example above it shouldn’t be hard.

Viewing 15 replies - 31 through 45 (of 55 total)