• Ok, I’ve designated a certain page on my website to be my “Posts” page under the “Settings>Reading” area, but whenever I try to get a shortcode or HTML code to work within the page editor, nothing shows up. Can I no longer edit that page?

Viewing 9 replies - 1 through 9 (of 9 total)
  • That Page’s content will never be used. Its permalink is used to hold the Blog Home.

    Thread Starter fullcircleweb

    (@fullcircleweb)

    So I can’t add anything like a slider to it?

    To add a slider or block of code to the Blog Home page, you could make use of is_home() and place it in index.php or header.php depending on where you want it to show.

    Thread Starter fullcircleweb

    (@fullcircleweb)

    So if I wanted to display this shortcode <?php echo do_shortcode( ‘[wowslider id=”28″]’ ) ?> , How would I do that?

    I saw your other thread saying your implement of that shortcode output [wowslider id="28"] as plain text. So first of all, make sure this shortcode or your implementation of it does actually work.

    Make a test page, call it “test page”, try just normal shortcode in the content area, and then try echo that shortcode in page.php before the content is called.

    Once that’s confirmed to work as expected, just place the echo shortcode in the template index.php or header.php, depends on where you what it to appear, making use of is_home() conditional check.
    http://codex.wordpress.org/Conditional_Tags

    Thread Starter fullcircleweb

    (@fullcircleweb)

    I’m kind of a novice at this, but I checked to see if it works in general and it does. I’ve used the is_home() before, I just don’t know how to use it with a shortcode. But I did check out the page

    Thread Starter fullcircleweb

    (@fullcircleweb)

    Ok, so I will set my reading settings to, “Front page displays your latest posts” since my homepage is my recent posts page and homepage. So can I then use this bit of code? `<?php ( is_front_page() ) {
    do_shortcode( ‘[wowslider id=”28″]’ )
    } ?>`

    …set my reading settings to, “Front page displays your latest posts” since my homepage is my recent posts page and homepage.

    If that’s the case, I would use is_home(), and reserve is_front_page() for a static front page.

    Here again, make sure that your implementation of that shortcode in template actually does work. I read from wowslider site that its usage in a template is to call the function directly, not echoing do shortcode. The reason might be that it is not real WP shortcode.

    Thread Starter fullcircleweb

    (@fullcircleweb)

    I did make sure that the shortcode works, but it only shows up when implemented through the post/page editor.

    If that’s the case, I would use is_home(), and reserve is_front_page() for a static front page.

    I wanted wanted my front page to display my latest posts, and I know that the posts page and the homepage cannot be the same so I didn’t go with the static page option.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding content to designated "Posts" page’ is closed to new replies.