WordPress.org

Ready to get started?Download WordPress

Forums

How to actually display a plugin on a custom page? (1 post)

  1. vk011
    Member
    Posted 1 year ago #

    Hello people,

    I am very new to WP and probably have a ridiculous question but what to do.

    I am trying to build my own theme, and on a certain page I am using a custom template where I have the header and footer included, and inbetween I want to include a plugin.

    I installed 2 plugins, a slider and a contact form, but can't find a way to get them to show there.

    Help please?

    OK, after doing a bit of searching I think the answer is to use shortcode.

    I have a page with some text and below it I pasted the shortcode for the contact form which is
    [easy_contact_forms fid=3]
    but nothing happens.

    The php I am using to display the actual content of the page is this:

    <?php
    $my_id = 30;
    $post_id_5369 = get_post($my_id);
    $content = $post_id_5369->post_content;
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    echo $content;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.