Forum Replies Created

Viewing 15 replies - 31 through 45 (of 47 total)
  • Thread Starter km

    (@kmaisch)

    Awesome, that works a treat! Thanks!

    Thread Starter km

    (@kmaisch)

    Actually if I use <?php query_posts($query_string); ?> – that works better (but still doesn’t show the stickies first).

    I guess I need to add some additional options to query_posts to force it to display the stickies first?

    Kim

    Thread Starter km

    (@kmaisch)

    Nah it’s a commercial theme…

    If I put <?php query_posts(”); ?> in front of the <?php if(have_posts()) : ?> line – it does then display the sticky posts first, however it then displays every post on the site… (on the archive and search pages)…

    I think the same applies to the default theme (it doesn’t have a query_posts function on the archive and search pages)…

    Cheers,
    Kim

    Thread Starter km

    (@kmaisch)

    Thanks vtxyzzy.

    It’s working OK for my index page… but just not in the Archive or Search pages.

    Query_posts doesnt seem to be used on these pages (for my theme anyway). This is what I have:

    <?php $category = get_the_category(); // get the active category information ?>
    <h2>Archive for <?php single_cat_title(); ?> (<?php echo $wp_query->found_posts ?>)</h2>
    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post() ?>
    etc...

    I’ve just started using one of their Templates. Their documentation was a bit average (it showed how to install the template and configure it – but was missing a few crucial instructions such as changing file permissions on some of the directories within the template (for image thumbnails, uploads, etc). The template I purchase is also lacking a few critical things (it’s a classifieds template, and does not have a field for price) – and I’m having trouble getting support from them regarding this (i suppose it is a feature request rather than a bug). I’ve needed to edit a lot of the code to correct some bad english translations.

    Anyway, I think they make good templates – but you need to be pretty savvy editing php code to tweak it how you want… and don’t expect too much from their support.

    K

    Thread Starter km

    (@kmaisch)

    Ahh, thanks. Will disabling the Pingbacks prevent the remote site/robot from linking to back to our post? Or just prevent us being notified about it?

    Thread Starter km

    (@kmaisch)

    I have hidden the category from the dropdown cats by using:

    ?php dropdown_cats(‘0′,’All’,’name’,’asc’,’0′,’0′,’1′,’0′,”,’36’); ?

    The last parameter ’36’ is the category ID that I want to hide.

    I cant find anywhere in my index.php template where is_category or list_cats is. I can find the_category and the_content… not sure how to make these conditional though. Hmm :/

    Or should I be editing wp files not in my template directory?

    Kim

    Thread Starter km

    (@kmaisch)

    Thanks. Next question – how do I put the content and sidebar in a container?
    By editing the index.php?

    eg:

    table width=”800″ border=”0″ cellspacing=”0″ cellpadding=”0″
    tr
    td ALL CONTENT BETWEEN GET_SIDEBAR AND GET_CONTENT? /td
    /tr
    /table

    ?

    Kim

    Thread Starter km

    (@kmaisch)

    decided to use the drop down cats on the sidebar instead, so this has fixed the problem.

    Kim

    Thread Starter km

    (@kmaisch)

    never mind – all fixed now! ??

    Thread Starter km

    (@kmaisch)

    anyone?

    Thread Starter km

    (@kmaisch)

    Excellent – exactly what I am after!! (and the search function as well – that was going to be my next request). Thanks ??

    Question – you have a /archive/ where it lists everything – how do I get that? So far I have only accessed my archive through the sidebar where it lists the months. Rather than that I’ll have a link to “Archive” where it utilises your archive.php file instead.

    Thread Starter km

    (@kmaisch)

    Ok, fixed the style sheet issue… so all of the above can be ignored, now!

    On the sidebar.php, the lists for the Categorys, Archives, Links, etc. are using this: [?php wp_list_cats(‘list=0’); ?] – how can I make that list come through with [li] and [/li] before and after each category? Do I have to hard code it somewhere, or can it be done through the sidebar.php or style sheet?

    Kim

    Thread Starter km

    (@kmaisch)

    Found the problem I think.

    This was in the stylesheet:

    ul {
    margin-top: 0px;
    margin-left: 0px;
    margin-bottom: 0px;
    padding-left: 0px;

    I deleted that – and have got a little further now (it seems to have been overiding the #sidebar ul li)

    Kim

    Thread Starter km

    (@kmaisch)

    Hmm, still can’t get it working.
    I’m learning as I go here (haven’t had much CSS experience before).

    I have put this in the stylesheet:

    #sidebar ul li {
    list-style-type:circle;
    list-style-position:outside;
    }

    I take it this means that for the ID “sidebar” any
    ul or li tags will have the circle and outside characteristics?

    If my sidebar.php file has div id=”sidebar”, but later has div align=”left” – does that cancel out the div id=”sidebar” or does it fall inside it? (eg: do I need to keep putting a new div id=sidebar every time i have used another div tag? Or can I have div tags within div tags? (just depends wher ethe closing /div is)

    Anyway, with those entered in the CSS file I still can’t get the bullet points appearing.

    The website I am working on is https://www.emfacts.com/weblog/

    Kim

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