• and I already tried Admin/options

    Here’s the deal, I am trying to integrate WP in my website
    for these I use the Loop and the sidebar.

    Also I think I need to have
    indexTest.php?page=weblog&p=1
    indexTest.php?page=weblog&c=1

    To get single post I have added

    function general_link()
    {
    /* function to get current page */
    echo $_SERVER[‘PHP_SELF’].”?”.$_SERVER[‘QUERY_STRING’];
    }

    and

    <h2 class=”storytitle”>&p=<?php the_ID(); ?>” rel=”bookmark”><?php the_title(); ?></h2>

    i replace the_permalink with general_link(); ?>&p=<?php the_ID(); ?>

    But now I notice the_category uses the blog_address you insert. I that case I get

    indexTest.php?page=weblog/?cat=1

    but I want
    indexTest.php?page=weblog&cat=1

    Any suggestions how to get this done??

Viewing 1 replies (of 1 total)
  • Thread Starter DDT

    (@ddt)

    hmm, after fiddling with the WP-source code I wasn’t happy with all the hacks/changes I made. So now I have come up with the following

    using .htaccess
    # “content” is een php-script
    <files content>
    ForceType application/x-httpd-php
    </files>

    now mysite.com/content/weblog/ includes

    case weblog:
    require(‘contentFilez/weblog/wp-blog-header.php’);
    include(‘contentFilez/weblog/index2.php’);
    break;

    by also using

    function fula_get_page() {
    $data = explode(“/”,$_SERVER[‘PATH_INFO’]);
    $page = $data[1];
    return $page;
    }
    $page = fula_get_page();

    weblog/index2.php consist of The_loop and the_sidebar

    I hope you can follow, when it’s complety ready I will post my website.

    Still learning the code WP uses.

    Great product

Viewing 1 replies (of 1 total)
  • The topic ‘Best place to change default blog address?’ is closed to new replies.