Forum Replies Created

Viewing 15 replies - 31 through 45 (of 46 total)
  • Thread Starter jimleeder

    (@jimleeder)

    Update – the code below shows posts from the category and how many it should show as I specified, but the pagination doesn’t work. It goes to /page2/ which is blank.

    <?php

    /**
    * Template Name: Archive
    *
    */

    get_header();?>

    <!–blogcontent–>
    <section class=”strapline”>
    <div class=”container12 heading”>
    <div class=”column12 heads”>
    <h1>Category: <?php single_cat_title( ”, true ); ?></h1>
    </div>
    </div>
    </section>

    <div class=”container12″>
    <div class=”column8 news”>
    <?php

    // The current selected category defined in $maincat
    $maincat = get_category(get_query_var(‘cat’))->name;
    $catid = get_cat_ID($maincat); //the selected category ID

    $countallposts = wp_count_posts(); //counts all published posts
    $totalposts = $countallposts->publish; //result of all published posts

    $i = query_posts(‘category_name=”‘.$maincat.'”‘);
    $noofposts = count($i);

    $postcatcount = 0; //count the posts with the selected category

    $temp = $wp_query; $wp_query= null;
    $wp_query = new WP_Query(); $wp_query->query(‘showposts=5’ . ‘&paged=’.$paged);

    $args = ‘cat=’ . $catid . ‘&posts_per_page=3’; //arguments – does the category and amount per page

    query_posts($args); //shows only posts in selected category

    while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

    <?php $cats = get_the_category();
    $postcat = $cats[0]->name;
    // category name for individual post defined in $postcat

    ++$postcatcount; //plus one to the amount of posts in the selected category

    ?>

    <h2>” title=”Read more”><?php the_title(); ?></h2>
    <?php the_excerpt(); ?> <?php echo “COUNT: “; echo $postcatcount; ?>
    <hr>

    <?php endwhile; ?>

    <?php if ($paged > 1) { ?>

    <nav id=”nav-posts”>
    <div class=”row”>
    <div class=”column4 alpha prev”><?php // next_posts_link(); ?> <?php echo paginate_links( $args ); ?></div>
    <div class=”column4 omega next”><?php // previous_posts_link(); ?></div>
    <?php echo “Yes theres more than 5 – Count total: “; echo $postcatcount; echo ” Paged data = “; echo $paged; ?>
    </div>
    </nav>

    <?php }else{ ?>

    <nav id=”nav-posts”>
    <div class=”row”>
    <div class=”prev”><?php // next_posts_link(‘« Previous Posts’); ?> <?php echo paginate_links( $args ); ?></div>
    <?php echo “No theres less than 5 – Count total: “; echo $postcatcount; echo ” Paged data = “; echo $paged; ?>
    </div>
    </nav>

    <?php } ?>

    <?php wp_reset_postdata(); ?>

    </div>

    <div class=”column4″><?php dynamic_sidebar(‘primary-sidebar’); ?></div>

    </div>
    <!–blogcontent end–>

    <?php get_footer(); ?>

    I’ve got this same issue except it links to a blank page. Also when you click a category it shows all posts, not just for the category. Any help anyone?

    Forum: Fixing WordPress
    In reply to: WP 4.3 HTTP Error

    I’ve got the same problem on one of our client’s websites.

    I’ve read it might be because of the PHP level on the server (On ours its 5.3.3), but not totally sure as haven’t upgraded.

    Would be cool if someone whos tried this or something else could offer a solution?

    Thread Starter jimleeder

    (@jimleeder)

    I got an answer on Stack Overflow, I had to download the wp-content folder and use a “grepping” tool to find the strings

    Thread Starter jimleeder

    (@jimleeder)

    Ok thanks.

    Thread Starter jimleeder

    (@jimleeder)

    Ok thanks for your help.

    Thread Starter jimleeder

    (@jimleeder)

    Currently all the products are set up on Marketpress on my company’s website as one off payments.

    Products are downloadable office applications.

    What I want to achieve is to make some of them paid by customers on a monthly basis. This cannot be achieved at the moment within the capabilities of Marketpress.

    How can this be achieved? Would Membership be appropiate?

    Thread Starter jimleeder

    (@jimleeder)

    Its because on my company’s website using Marketpress Paypal only starts if the shipping address is the same as the paypal account. Since an address is required in the shipping, and not included in the sandbox account, the account can’t be used for testing.

    However we are using a method now which stops the shipping appearing, but I would still like to know if its possible to add an address to a sandbox account.

    Thread Starter jimleeder

    (@jimleeder)

    Is there any custom code I can add into my website to allow for recurring payments?

    If not, are there any plans to involve recurring payments in Marketpress?

    I don’t think Membership is suitable for this situation, as cloud office prroducts are being offered to customers on a per user per month basis. Membership looks like its just for allowing access to paying customers on the website, not the apps.

    Thread Starter jimleeder

    (@jimleeder)

    Back to my earlier question about entering personal details such as the address, I meant the paypal sandbox account. When I make a buyer or seller sandbox account theres nowhere to add an address, which forces me to use my proper paypal account on my website in sandbox mode.

    Thread Starter jimleeder

    (@jimleeder)

    I’m using my proper paypal account on the sandbox to test (no card details saved into it). Is it safe to use this account without entering my card details? Will no money go through the sandbox no matter what?

    Thread Starter jimleeder

    (@jimleeder)

    I’ve now made the sandbox accounts but they lack personal details, and I need this as my website compares the shipping details you enter agaisnt PayPal details. I don’t really want to test a real account as I don’t want to accidently spend any money.

    Anyone know how to add personal details such as address and full name?

    Forum: Plugins
    In reply to: Paypal sandbox
    Thread Starter jimleeder

    (@jimleeder)

    Ok thanks, I’ll post there.

    Forum: Plugins
    In reply to: Paypal sandbox
    Thread Starter jimleeder

    (@jimleeder)

    I thought that was needed as it was on everyone else’s post title.

    Its the Marketpress plugin on WordPress. I want to know how to use Paypal sandbox as described in my last post. I’ve already posted on the paypal forum, I thought posting in multiple places might speed up a reply.

    Thread Starter jimleeder

    (@jimleeder)

    Solved

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