Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Fixing WordPress
    In reply to: PHP Coding
    Thread Starter braisbyi

    (@braisbyi)

    Hi Ryan,

    Many thanks for the pointer, I cut and pasted the second example with the number argument but when I run this I get the following;
    Recent Posts
    ‘5’ ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ echo ‘•’ . $recent[“post_title”].’
    ‘; } ?>

    It’s almost as if there is a problem with the code except I cut and pasted it.

    I also have this code just above;
    <base href=”http://www.1066gym.co.uk”&gt;
    <?php
    // Include WordPress
    define(‘WP_USE_THEMES’, false);
    require(‘./wordpress/wp-load.php’);
    require(‘/wordpress/wp-blog-header.php’);
    ?>

    Any help would be appreciated
    Ian

    Thread Starter braisbyi

    (@braisbyi)

    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

    Thread Starter braisbyi

    (@braisbyi)

    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/&#8221;, 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

    Thread Starter braisbyi

    (@braisbyi)

    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”

    Forum: Fixing WordPress
    In reply to: embed in HTML
    Thread Starter braisbyi

    (@braisbyi)

    alchymyth, what can I say it works a dream, many thanks for looking at this. My fault realy as I introduced the index to solve an earlier problem and then when the customer asked me to put the blog in to the web pages I just didnt consider the css changes.

    Once again many thanks for the help.

    Ian

Viewing 5 replies - 1 through 5 (of 5 total)