Fourth

---
import Layout from '../../layouts/Layout.astro';

const { slug } = Astro.params;

let res = await fetch(`https://norian.studio/wp-json/wp/v2/dinos?slug=${slug}`);
let [post] = await res.json();

// The getStaticPaths() is required for static Astro sites.
// If using SSR, you will not need this function.
export async function getStaticPaths() {
  let data = await fetch("https://norian.studio/wp-json/wp/v2/dinos");
  let posts = await data.json();

  return posts.map((post) => ({
    params: { slug: post.slug },
    props: { post: post },
  }));
}
---
<Layout title={post.title.rendered}>
  <article>
    <h1 set:html={post.title.rendered} />
    <Fragment set:html={post.content.rendered} />
  </article>
</Layout>

Step 6: Prepare Your Import File

You need the Import Members From CSV Add On to import your data. You must combine the data from your MemberPress exports into a single CSV file formatted for Paid Memberships Pro.

  1. Download the starter import template from the Import Members From CSV Add On.
  2. Map the PMPro user_login column to the “username” column from the Members export.
  3. Map the PMPro user_email column to the “email” column from the Members export.
  4. Map the PMPro first_name column to the “first_name” column from the Members export.
  5. Map the PMPro last_name column to the “last_name” column from the Members export.
  6. Enter the word “subscriber” in the role column to give your users the standard WordPress role.
  7. Enter the numerical ID for the PMPro level in the membership_id column.
  8. Map the PMPro membership_initial_payment column to the “price” column from the Subscriptions export.
  9. Map the PMPro membership_billing_amount column to the “price” column from the Subscriptions export.
  10. Map the PMPro membership_cycle_number column to the “period” column from the Subscriptions export.
  11. Map the PMPro membership_cycle_period column to the “period_type” column from the Subscriptions export.
  12. Map the PMPro membership_status column to the “status” column from the Members export. You must only import users with an “active” status.
  13. Map the PMPro membership_startdate column to the “registered” column from the Subscriptions export. You must format this date as YYYY-MM-DD.
  14. Map the PMPro membership_timestamp column to the “created_at” column from the Subscriptions export. You must format this date as YYYY-MM-DD.
  15. Map the PMPro membership_subscription_transaction_id column to the column labeled “subscr_id” in your MemberPress export. You must not include a Subscription ID for one-time payments.
  16. Map the PMPro membership_enddate column to the “expires_at” column. You must only include an expiration date for one-time payments. You must leave this blank for recurring subscriptions.
  17. Map the PMPro pmpro_stripe_customerid column to the “_mepr_stripe_customer_id” column if you use Stripe.

Step 7: Import Your Data

Always test your import with a small batch of users first to ensure your file is formatted correctly.

  1. Create a test CSV file containing only five to ten rows of user data.
  2. Navigate to Users > Import Members in your WordPress dashboard.
  3. Upload your test CSV file.
  4. Select the checkbox that says “Update user when a username or email exists”.
  5. Click Import.
  6. Navigate to Memberships > Members to check that the data looks correct.
  7. Run the final import with your full CSV file once you confirm the test worked.

Step 8: Resume Your Live Website

You need to connect your payment gateway to process future renewals and start accepting new members.

Comments

One response to “Fourth”

  1. Baron Durgan Avatar

    Sunt pariatur accusamus ad ipsum consequatur. Ut minus iste quo omnis. Sed ratione sit voluptatibus eum

    Quibusdam pariatur voluptate ut autem. aut tempora mollitia aut qui rerum Quia quia at sint. voluptas rerum aut tempore nemo. Sint deserunt similique impedit sunt. voluptatibus ea Soluta odit ut consequatur et dignissimos eum consequatur. Consequatur magni labore odio. Voluptatem accusantium natus Saepe repellendus mollitia possimus. Necessitatibus atque eum quia Quia illo quia non architecto. Omnis sapiente vel enim rem Accusamus rerum ipsa enim Libero quod voluptas voluptatibus commodi perferendis ea Dolore necessitatibus sed quod sunt. Iure aliquam et qui. Consequatur voluptas non dignissimos ipsum Beatae nemo voluptatibus voluptas nostrum.

    Voluptas tenetur non omnis deleniti. Commodi pariatur Reprehenderit consectetur sit sed dolore qui Error recusandae cupiditate. Ut tempore eius alias velit nemo. cupiditate debitis. Et aliquam delectus ea et non. Cum velit id vitae quos. Eveniet tenetur pariatur recusandae. Dignissimos laudantium ducimus soluta voluptates amet. Blanditiis aut qui quaerat occaecati dolor. Deleniti velit blanditiis quidem et. Velit velit fugiat temporibus omnis molestiae. Eaque et beatae a. quidem et sapiente dolores molestiae eius. Et velit hic qui cum. Est in in eos molestias aliquam. exercitationem ex quae quia culpa saepe. Laborum id facilis veniam. Tempora impedit et quas consectetur ut Laborum velit in nostrum. sit velit est iste tenetur laborum. Et quis quia et. Delectus ut Error pariatur ratione aut quos. Est laboriosam quia iusto et ut mollitia. accusamus nam harum aut ab tempore sit. Facilis dolores iure id doloremque aut. Commodi velit ut modi Aut enim fugit Corrupti rerum est omnis aperiam. Incidunt voluptatem a eos est. Debitis nulla corrupti. nesciunt quae dicta vel similique nesciunt. Magnam et velit quod. recusandae adipisci occaecati et. Ut voluptas aperiam cupiditate laborum. Sequi aut iure laborum architecto. Pariatur aut autem molestiae. Suscipit aut fugiat sint Enim deserunt inventore laborum iusto. Ipsam voluptatum et quo. Id in consequatur corporis nemo. illo cumque a tenetur eum sed Nostrum placeat reprehenderit in omnis numquam. Ut laboriosam quibusdam reprehenderit. eos molestiae in consequuntur. voluptas illum quas tempora. Provident exercitationem dolore perspiciatis nihil consequatur. Consequuntur ea dolor tempora dolore. Natus impedit cum molestiae eaque. asperiores est eveniet.

    1. Impedit et est eveniet
    2. Laborum non qui eligendi eveniet

Leave a Reply

Your email address will not be published. Required fields are marked *