WordPress.org

Ready to get started?Download WordPress

Forums

Page In Page
[resolved] Show Page Featured Image and Link Title (9 posts)

  1. Andrea Reed
    Member
    Posted 8 months ago #

    Hi!

    Is there a way to display only the Page Title and Featured Image? Plus link those to that Page? I don't need the page content displayed.

    Thanks,
    Andrea

    http://wordpress.org/plugins/page-in-page/

  2. Cyril
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Andrea for the moment there isn't but I will add this feature because there is at least one person who needs it ;)

  3. Andrea Reed
    Member
    Posted 8 months ago #

    Wow! Awesome thanks! I can send you a link when I'm finished so you can see how I used it. I'm excited for this plugin as I can use it on several sites that I manage too.

  4. Andrea Reed
    Member
    Posted 8 months ago #

    Is this something that will be added in the near future? Thanks.

  5. Cyril
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Andrea yes maybe by tomorrow you should have it. I have been quite busy with little time to look into this.

  6. Cyril
    Member
    Plugin Author

    Posted 8 months ago #

    Check current version now if you can address your problem.

  7. Andrea Reed
    Member
    Posted 8 months ago #

    Thanks! So far the image shows but the link does not.

    Here is the shortcode I used:

    [twl_page_in id=66 show_title_as_link=1 show_featured_image=1]

    Also, title is <p> and not <h1> like it used to be. Thanks again! I appreciate the support!

  8. Cyril
    Member
    Plugin Author

    Posted 8 months ago #

    Hi. In this case you will have to specify your own 'template' because a majority does not want the image display as a link. Also I don't think the title has ever been with h1 tag because that should the primary page title. So to archive what you want use the following shortcode in your editor when it is in 'Visual' mode if you magic quotes escaping on or in 'Text' mode if magic quotes is off.

    [twl_page_in id=66]
    <h1><a href="${page_link}">${page_title}</a></h1>
    <div><a href="${page_link}"><img alt="" src="${page_image}" /></a></div>
    [/twl_page_in]

    You can add your css classes to the HTML tags in the template. Maybe later I will add 'show_featured_image_as_ink' option.

  9. Cyril
    Member
    Plugin Author

    Posted 8 months ago #

    ok so now you can update your version 2.0.2 from the repo and use the short code

    [twl_page_in id=66 show_title_as_link=1 show_featured_image_as_link=1]

Reply

You must log in to post.

About this Plugin

About this Topic