Forum Replies Created

Viewing 5 replies - 166 through 170 (of 170 total)
  • Thread Starter Head Goldfish

    (@shoelaced)

    Looked into the jQuery Cycle, but couldn’t get it to work – it seems like all the slides have to be defined ahead of time?

    If anyone finds this page with the same question, here’s what I did, which does work (scroll down to the pagination section):

    https://wp.tutsplus.com/articles/getting-started-with-ajax-wordpress-pagination/

    Thread Starter Head Goldfish

    (@shoelaced)

    Thank you so much! That worked perfectly. And for future reference, the category slug is usually a lowercase, hyphenated version of the category name, right?

    Thread Starter Head Goldfish

    (@shoelaced)

    Lies.

    It totally works with a random.php (template) and randompage.php (little snippet that calls the template).

    Thread Starter Head Goldfish

    (@shoelaced)

    Actually, here’s how, for anyone else who may be pulling all their hair out. This may not be the best way, but this is what I did and it’s working:

    1. Create “home.php,” which should be the theme for your home page, remembering to add the theme label to the top:
      <?php
       /*
       * Template Name: Home
       */
      ?>
    2. Create a page to be the home page and set the Home theme under its attributes.
    3. Go to Settings>Reading and set the static home page to the one you created, leaving the posts dropdown BLANK.
    4. Put your posts page theme in the index.php without the theme label code above.
    5. Create another .php file with just this:
      <?php
      /*
       * Template Name: Blog
       */
      load_template(TEMPLATEPATH . '/index.php' );
      ?>
    6. Create a blank page titled “Blog” or whatever, and give it the Blog theme in the attributes. It’ll call the index.php, which for some reason works while calling a random .php file with the same code doesn’t. I don’t know.
    7. Drink.
    Thread Starter Head Goldfish

    (@shoelaced)

    ****UPDATE****

    Holy crap, I got it working. I have no idea how, but the home page now shows the home page and the main blog page now shows the posts.

    I haven’t figured out how to make the posts that display tag-specific, though, so if anyone can help with that I’d be much obliged!

    GOD, I am going to drink SO MUCH WINE when I’m done with this thing.

Viewing 5 replies - 166 through 170 (of 170 total)