Support » Plugins » [Plugin: WP Issuu] Embedding ISSUU using custom_fields

  • The following might help someone:

    My Goal:

    • Display an introduction + image on the front page
    • Display the ISSUU-embed on the single-post-page (single.php)
    • Remove the sidebar to make space for the ISSUU-embed

    Here’s how you can achieve this:
    0. Install the plugin

    1. Create custom wordpress-category-templates. Check here.

    2. Make a single_issuu_post.php for your ISSUU documents. embed it in your single.php file.

    3. Remove the sidebar code
    <?php get_sidebar(); ?>

    4. Add the WordPress ISSUU embed code in a custom field (I called it “issuu_embed_link”)

    5. Add the following code in single_issuu_docs.php

      $this_post_id = the_ID();
      $custom_fields = get_post_custom( $this_post_id );
      $my_custom_field = $custom_fields['issuu_embed_link'];
      foreach ( $my_custom_field as $key => $value )
         //Call the ISSUU parsing function from the plugin

    I removed <?php the_content(); ?> because I did not want to show my “front-page introduction”.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Issuu] Embedding ISSUU using custom_fields’ is closed to new replies.