Forum Replies Created

Viewing 11 replies - 421 through 431 (of 431 total)
  • Here is a list of things to check:

    • What version of WordPress are you running?
    • Are there any errors in the server logs?
    • Make sure the “To:” email is correct (check for trailing spaces)
    • In smcf_data.php, change:
      @mail($to, $subject, $body, $header) or
        die('Unfortunately, your message could not be delivered.');

      to (remove the @):

      mail($to, $subject, $body, $header) or
        die('Unfortunately, your message could not be delivered.');

    Let me know if any of those help.

    -Eric

    Eric

    (@emartin24)

    Well, I thought about what you said and have added a different solution. Basically, I decided, for paged entries, to just check $wp_query->max_num_posts to determine if there was more than 1 page.

    I also removed the check for single posts, since, in my case, there will always be a next or previous post.

    Thanks again for your input.

    Eric

    (@emartin24)

    Good point =) I’ve posted my solution. I’m not sure if it is the right/best way to do it, but it works for me!

    Thread Starter Eric

    (@emartin24)

    Hmm…I was just checking out the code for posts_nav_link and it actually calls both next_posts_link and previous_posts_link.

    So, I guess they are not deprecated, but wonder why it would be suggested not to use them…?

    Eric

    (@emartin24)

    @twistedtech – Thanks for the tip!

    I was able to throw something together that fit my needs…I’m thinking I might even create a plugin. I’ll post back here with my solution.

    -Eric

    Eric

    (@emartin24)

    Sorry to dig up an old post, but I have the same question/issue.

    I want to know if there are any previous or next posts…what is the easiest way to do this?

    If there were a way to suppress the output of the calls like this:

    $older = next_posts_link('« Older Entries');
    $newer = previous_posts_link('Newer Entries »');
    $show_nav = FALSE;
    if (strlen($older) > 0 || strlen($newer) > 0) {
        $show_nav = TRUE;
    }

    That would be fine too. Basically, in addition to have_posts(), it would be nice to have a posts_count() or something like that.

    Thread Starter Eric

    (@emartin24)

    Pretty cool…the reading options has allowed me to setup my root as one page and my blog as another. I was trying to make it a lot harder than it really is ??

    Now I just need to work on the templates/design!

    Thanks again for the help.

    Thread Starter Eric

    (@emartin24)

    So, here’s what I’ve done:

    – Installed WP in /blog
    – Copied index.php into /
    – Updated URL options to /blog
    – Created a page, called Home
    – Set Home as the front page

    So now when I go to /, I see the Home static page. But I also see it when I go to /blog.

    So,
    1) What do I need to do to make /blog display the most recent posts?

    EDIT – I got this one figured out. I just created a blog page (as suggested previously ?? ) and then changed my blog URL to /.

    2) What is the best way to give each page a custom look and feel? Do I just assign them different templates?

    Thanks for the help ??

    Thread Starter Eric

    (@emartin24)

    That does help…thank you very much for the suggestions!

    Thread Starter Eric

    (@emartin24)

    I just started working with WP and am just curious if the above is easily possible…or if I need to find a different structure/method.

    Thread Starter Eric

    (@emartin24)

    Thanks for the reply. I think I understand what you are saying, but am not sure if it solves my quest…

    Here is what I would like:
    – WP as a “CMS”
    – WP under mydomain.com/wp < done
    – mydomain.com/ < a static page rendered by WP
    – mydomain.com/blog < WP posts
    – mydomain.com/xyz < WP pages (about, contact, etc)

Viewing 11 replies - 421 through 431 (of 431 total)