Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • designworks, did you manage using/implementing the PHP code? Note that you can’t use PHP code in posts unless you use an additional WP plugin, Exec-php (https://bluesome.net/post/2005/08/18/50/)

    I am having the same issue, I put my money on this thread: https://www.ads-software.com/support/topic/149100?replies=4

    another thingy I found (but have not tried yet) here: https://beradrian.wordpress.com/2007/07/19/passing-post-parameters-with-ajax/

    I need similar functionality for a page inside wordpress. I use “pretty” url’s and I can manage coding and handling e.g. https://www.mydomain.com/page?q=abcd&a=efgh links in php scripts. However, the pretty permalinks screws that up.

    techxplorer, is there a standardized way in which to do so using Ajax. I must admit I do a fait bit of php and mysql, but never came close to javascript ad ajax coding.

    might even be an option for a plugin ??

    any help would be greatly appreciated.

    tia

    How about using the RSS feeds from your WP blog.

    Either using a few lines of php (5+) yourself (example using a feedburner RSS feed, but could be any rss feed),

    <?php //  Load the XML file into a Simple XML object
    $filename = https://feeds.feedburner.com/<em>yourfeedname</em>";
    $feed = simplexml_load_file($filename);
    
    //  Iterate through the list and create the unordered list
    echo "<ul>";
    foreach ($feed->channel->item as $item) {
      echo "<li><a href='" . $item->link . "'>" . $item->title . "</a></li>";
    	}
    echo "</ul>";
    ?>

    This will display an unordered list of your feed titles including a hyperlink to the WP post.
    Additionally you could also display the RSS contents by adding

    echo "<li>" . $item->description . "</li>";

    before the closing “}”

    Then use your site’s CSS for styling.

    You can also use the Google Feed API (you can see it in action on my site but I don’t think I can add a link here. I use the Google Feeds API to display “recent posts”, “recent comments” and “Other news” with a mashup of a few external RSS feeds).

    CARP (do a google search) is another way to convert RSS to html and allows you to include it in a website.

    After all, RSS is about Content Syndication!

    hope this helps.

    Thanks Otto, a good start and interesting stuff! although not a typical WP plugin but more a tutorial I think.

    I RTFM (also from sitepoint) ?? and still haven’t got a clue where to add what. I am aware of the .htaccess functionality, but I am not an expert. I do code php.

    Basically all I want is to include a page in my theme (or in the root) within WP that has parameters. Also, I do not mind the ugly URL’s for this specific function.

    So where does one add the $wp-rewrite code, and lets say I have a php page in my template called “results.php”, with 2 parameters (results.php?p1=a&p2=b) … is there a simple rule that tells WP that the page results.php (either in the root or in the theme dir) uses parameters and that it shouldn’t rewrite those?

    I added the following (and loads of variations):

    <?php
    $wp_rewrite->non_wp_rules = array( ‘/results/([0-9]+),([ad]*),([0-9]{0,3}),([0-9]*),([0-9]*$)’ => ‘/results.php?q=$1&l=$2’ );
    print_r($wp_rewrite->mod_rewrite_rules());
    ?>

    to results.php (and on various other locations, in the root, in the template directory, with path etc.) but to no avail. 404 galore ??

    thanks anyway for any input!

    I need this as well, and actually I don’t care too much about url rewrites for this particular page. &1=value1&p2=value2 is fine with me, but I can’t get that to work either?

    I have a search page and a results page that queries the database based on the input on the 1st search page

    I use custom template pages passing the parameters using $_get but keep getting an error (404) on https://www.domain.com/results.php?p=p1

    How, if at all can I do that?

    @vision22, did you manage to get it to work without the url rewrites?

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