WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Only show specific category on startup (7 posts)

  1. braisbyi
    Member
    Posted 1 year ago #

    Hi,

    I am working on a site where wordpress is running inside standard HTML using iframe (www.1066gym.co.uk) to display news, this is so the owner can update his web page whilst at competitions using his ipad.

    He know wants another page just to show the category "results", is there anyway to start wordpress with a parameter just to selectively show this category.

    Or does anyone know of any other way round this?

    Any help would be appreciated as WordPress realy isn't my forte.

    Ian

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Sure, just use the URL in the iFrame: yoursite.com/category/results

    If you can load the URL normally in a browser, you can iFrame it (as long as it is your site or have full permission to do so)

  3. braisbyi
    Member
    Posted 1 year ago #

    Sorry, I obviously didn't frame my question very well, at the moment I have a standard HTML website, on the index.shtml page I have an iframe to run wordpress (src="/wordpress/index.php") I now need a second HTML page to run wordpress which will access the same wordpress database but only pulling out postings which have a category "Results".

    Can I just attach a parameter to the I-frame which only pulls out the posts which have been flagged with the category "Reports"

  4. braisbyi
    Member
    Posted 1 year ago #

    OK "Seacoast" I have done some playing around with the code and see your point regarding the URL "http://1066gym.co.uk/wordpress/category/results/", this works perfectly when it is typed directly in to the browser but when I put in into the src of an I-frame I get the message "Page Not Found"?

    Looks like its going to be a long night.

    Many thanks for the help "Seacoast"

    Ian

  5. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    You worded it fine the first time and my response is the same...simply use

    src="/wordpress/category/results/"

    That is all. That URL pulls the posts from the category 'results'.

  6. braisbyi
    Member
    Posted 1 year ago #

    I think I need to get my eyes fixed, after going through this again I notice that I had left a "\" at the front of my src, after removing this it now works of a fashion, all I need to do now is hide the title as it comes up with the title from the main database, this shouldn't be too much of a problem though as I can hide this using the z-index underneath the new title put out from the parent program.

    Many Thanks Seacoast

    Ian

  7. PinkishHue
    Member
    Posted 1 year ago #

    Have you considered using PHP instead of an HTML/iframe solution? Then you can include WordPress in the site properly: http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website

    Iframes are not very SEO friendly as the search engines will not read the content as if it is part of your HTML page.

Topic Closed

This topic has been closed to new replies.

About this Topic