• maesterkinoc

    (@maesterkinoc)


    Is there a way to get the nicer archive to work with the theme system of 1.5 I aint sure if I should just leave it in my base category as the archive.php that uses my old template or like edit it and put it i the theme folder.

    I still want it as a seperate page though but I want it to work with the theme system

Viewing 8 replies - 1 through 8 (of 8 total)
  • Kafkaesqui

    (@kafkaesqui)

    Using this as the framework for your archive page should do it:

    https://www.ads-software.com/support/topic.php?id=23974#post-135568

    Just replace the PUT YOUR STATIC CONTENT HERE section with your archive’s PHP script.

    Thread Starter maesterkinoc

    (@maesterkinoc)

    Thanks it helped I’m sill getting some problems but I’ll get around it…. HMMMM it doesnt seem to work as its coming up with the same error thing that happens when I try to skin using conventional methods in wp1.2 (the nicer archive script uses a different header info than the normal blog)

    Kafkaesqui

    (@kafkaesqui)

    Though I can get it to work, there’s a conflict with narchive’s structure and the framework I proposed, in that without the wp-blog-header.php require it works but generates an error with the load_template() function. With it, it ignores narchives override of the $posts_per_page variable.

    Try metacom’s solution (from the same forum link above), to bypass the issue with load_template(). The initial portion of your archive template would look like:

    <?php
    require_once('./wp-config.php'); $single = 1; $siteurl = get_settings('siteurl');
    $themes = get_themes();
    $current_theme = get_current_theme();
    $current_template_dir = $themes[$current_theme]['Template Dir'];
    include($current_template_dir . "/header.php");
    ?>

    Include other template files in this manner:

    <?php include($current_template_dir . "/footer.php"); ?>

    Thread Starter maesterkinoc

    (@maesterkinoc)

    No my problem isnt exactly with the template it is that it only shows the same amount of post that i set up wordpress to show on the main page

    SrDusky

    (@srdusky)

    Ah, you (maesterkinoc) noticed, too. There was a discussion about that here…

    https://www.ads-software.com/support/topic.php?id=24031

    Fortunately, there is a solution. It’s a plug-in.

    https://rephrase.net/miscellany/05/perpage.phps

    badmin

    (@badmin)

    Thank you Kafkaesqui!

    I was having trouble adding the header and footer templates using the get_header() and get_footer() functions. I was getting the following error:

    Warning: extract(): First argument should be an array in [blahBlahBlah]/wp-includes/functions.php.

    The function that was giving me a problem was load_template(), and the line was:
    extract($wp_query->query_vars);

    I still haven’t figured out why that wasn’t working, but your code provided a solution, after I made one modification. In order for me to get it to work, I had to change:

    require_once(‘./wp-config.php’);

    to:

    require_once( dirname(__FILE__) . ‘/wp-config.php’ );

    Now everything is groovy!

    badmin

    (@badmin)

    piginzen

    (@piginzen)

    I still get this error:

    Warning: extract(): First argument should be an array in /home2/olympus/public_html/xxxxxx/wp-includes/functions.php on line 1739

    I tried everything… Any ideas?

    I’d really like getting this going…

    Thanks,
    Mat

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Nicer Archives’ is closed to new replies.