如何在创建自己的行时从wordpress post表中获取数据

时间:2013-03-16 16:33:37

标签: php wordpress

标题

我设置了我的wordpress网站,但我在我的数据库的wp-post表中添加了一些额外的行。我添加了一行称为“periode”,但我不知道如何在dreamweaver中显示该行。

我正在使用

<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

        <h2><?php the_title(); ?></h2>

            <?php the_content(); ?>

            <?php wp_link_pages(array('before' => 'Pages: ', 'next_or_number' => 'number')); ?>

        <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

    <?php endwhile; endif; ?>

我希望在标题和内容之间显示“periode”的行数据。 any1知道任何PHP代码,以获取单页的信息吗?

0 个答案:

没有答案