Support » Plugin: Football Pool » What post types is the plugin using?

  • Resolved Danstano

    (@danstano)


    Are these custom post types or just custom fields? How do I list them under each team/match because my efforts are fruitless. Here’s the code I tried to echo the custom post meta.

    add_action( 'all_admin_notices', 'wpsnipp_show_all_custom_fields' );
    function wpsnipp_show_all_custom_fields() {
        if ( isset( $_GET['post'] ) ) {
            $post_id = absint( $_GET['post'] );
            ?>
            <div id="message" class="updated">
                <h3>All post meta:</h3>
                <xmp><?php print_r( get_post_meta( $post_id ) ); ?></xmp>
            </div>
            <?php
        }
    }
    • This topic was modified 1 year, 10 months ago by Danstano.
    • This topic was modified 1 year, 10 months ago by Danstano.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author AntoineH

    (@antoineh)

    I think you posted this in the wrong support forum.

    Thread Starter Danstano

    (@danstano)

    The question is about the type of post used in creating the teams, matches etc. About the code I pasted here (could be irrelevant) was my attempt to try and check what post type the matches are teams are using. I tried to echo the custom post type but looks like they are not in this category. Hope this explains what I’m looking for. Thank you

    Plugin Author AntoineH

    (@antoineh)

    I don’t use post types. Everything is stored in custom tables. You can find them easily by exploring the DB with phpMyAdmin or similar tool.

    Thread Starter Danstano

    (@danstano)

    Well answered. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What post types is the plugin using?’ is closed to new replies.