WordPress.org

Ready to get started?Download WordPress

Forums

publishing to a specified directory (3 posts)

  1. corqspy
    Member
    Posted 10 years ago #

    I have wordsmith installed in say: "/main/wordsmith" but I want the published page output to appear in "/main" -- I tried redefining the url the "/main" and defining the page's name appropriately, but the durn thing seems stubbord about outputting to anyplace but the wordpress dir? Where is it that I need to edit this particular settings issue?
    Thanks - Corq

  2. Xial
    Member
    Posted 10 years ago #

    You may find yourself interested in this topic -- I think the question you're asking is about the same as what I've asked here.
    Also, let me use my situation to see if this is answerable:
    WordPress is in /wp/
    My layout is in /
    I wanted my entries to be visible from a page in /
    While leaving wordpress in /wp/
    I've got this mostly working at the moment. However, I just need to find a way to rewrite the archives links (this might require some modification to the source sitting somewhere inside), and it may be the answer you're looking for.
    What I've done:
    Moved the page I wanted my entries to show up on to the directory I wanted it in;
    Edited this line: require_once('blog.header.php'); to look like this:
    require_once('path/to/wordpress/blog.header.php');
    Saved and placed it where I wanted it, then viewed the page.
    Why is it this simple?
    Take a look at the next line:
    require_once($abspath.'wp-links/links.php');
    The $abspath variable gets its absolute path from the initial 'require_once' statement, so if you wanted to add things like plugins within the WordPress directory, instead of writing out the full path to it, copy the idea used with the above piece of code. You might end up with something like this:
    include($abspath.'plugins/tagify.php');
    Hopefully this is of use to you.

  3. corqspy
    Member
    Posted 10 years ago #

    thanks for this - will try it later tonite as I get time and report back my results, very much appreciate the guidance!
    corq

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.