Forum Replies Created

Viewing 15 replies - 376 through 390 (of 3,008 total)
  • You all might like this (I know htis is 5 months old, but I know people are looking for this):

    http://wptricks.net/how-to-add-wp-login-link-to-your-navigation-menu-automatically/

    I do not see how it can be a problem

    I suppose for such am small site, it wouldn’t be a problem. but as more stuff is added, it can eventually become one. I guess I’m thinking of “future-proofing” (which I always do) because there may come a time when you’ll want to utilize the site more – and handling that type of thing *now* would be effortless, comparing to the mass 301’s you’d have to put in place later on.

    Since this page will have so few posts, I dont want to categorize them and I would prefer to not have “uncategorized” in the permalink.

    But again, *because* you will be using posts, you *will* be categorized. The default is “Uncategorized.” if you want a different word to show up, then rename the category. Then just use the %category%/%postname as the custom permalink. (again, adding %year% or %hour% or %postID% would be better in front of that, and it really doesn’t do anything to SEO)

    If you add “blog” as the beginning category thing in your settings, then all your posts will show up as “sitename/blog/uncategorized/postname” so to get rid of the “uncategorized” just rename it.

    Well, the page you’re logged into is outside of WordPress, so probably, yeah, it wouldn’t recognize it. I do believe WP uses cookies, but I’m not 100% sure of that. I know you can use the blog-header file to pull in the theme files and use the template outside of WordPress, but I don’t believe anything else works – like plugins I dont’ think would.

    You’d probably – again – be better off just creating a Page in your WP install and using the password protection there.

    Or, another idea – don’t know if this’ll work – but you might want to use “get_current_user” stuf to see if it recognizes you, and if it does, just set it so the user level you desire will see the content or not. (That could also work within WP – probably more reliably. Just edit the theme file for that particular Page.)

    I guess the question is, why don’t you want to use WP to manage the page in question?

    your require statement requires the correct path to wp-blog-header.php. You will also want to make the the FULL SERVER PATH on every page you plan to pull in from WordPress, since outside of WordPress, you’ll be changing directories all the time, and a relative location will pull in the wrong URL.

    BTW a server path doesn’t begin with http:// – that’s the URL. You need to find out from your host what the server path is (starts with something like “usr/site/public_html/…”)

    If you’re only doing it for one single page (like a welcome page) then you can use the path relative to where that page is. So if your welcome page is at the root, then your path should be ‘./blog/wp-blog-header.php’. However, it would probably just be much simpler to put the WordPress install in the root of your site, and set a Page as the home page. Then you don’t have to go through all of this.

    I’m still not 100% clear on what it is you’re looking to do. You want to write a post, and put in a link to download a file, but you don’t want anyone to be able to view the source code/hover over it and see the path to the file? Is that what you mean? but you still want the link to actually download the file in question?

    is this something like a “pay for” file? Where someone purchases a download and you want to hide where the file location is so people can’t just go to it willy-nilly? I dont’ know of a WP plugin that can d this, but there’s several PHP programs and services that can.

    Googling came up with this.

    You want it to say “blog” but you will use absolutely no categories at all? Is the site consisting only of Pages, with no posts? If you’re writing posts, you *are* using categories – the default is “uncategorized.”

    The default category is “uncategorized.” And you don’t have to stick with “year” that was only a suggestion. If you read that post, it’ll give you some good suggestions.

    If you want the category name to show, you can change the “Uncategorized” to “blog”, and put “blog” in the category base. But I’d read the post I linked to for safe suggestions on the best permalink to use.

    First off, you don’t need to post twice within a very short time frame. People here are volunteers, and posting multiple times will not guarantee an answer. (Usually it guarantees you won’t get one at all. But I’m in a good mood today.)

    Secondly, you should post some code – this is such a general question that there’s so many answers to it, it’s difficult to help you, unless you give us something to help you with. How is your menu being pulled in? Manually? using specific code? Widgets? A plugin? or are you using the “Menus” stuff in the “Appearance” section? There’s really no way to answer this without some additional information.

    First off, you should *never* use %postname% as your permalink settings. All kinds of bad.

    Second, sounds like you want to use %category%/%postname – which is also all kinds of bad.

    Instead, you wan to use a permalink setting that startes with a number, like /%year%/%category%/%postname or something along those lines.

    Lots and lots and lots of posts on this, with lots and lots of suggestions…

    Site hacked…

    I’m afraid I don’ quite understand what you’re asking for. but if all you want to do is put a link in a post that downloads a file, then you just insert it via the regular “Uploads” section at the top of where you write your post. The last image (looks kind of lik a star) is for files. Click it, upload your file, and insert the link into the post. That’s pretty much it.

    ANY theme can do this. Just create categories: “web design” and “photography”. Pop your posts in the category. Have the menu link to each category. People click on “web design” and they see everything you’ve posted in that category. it doesn’t matter what theme you use – they’ll all do this.

    You can remove the paragraph tags, but it requires some code. Your best bet would be to leave it alone, and just use CSS to change how the P tag is displayed. So in your theme file:

    <div class="cat_desc"><?php echo category_description(); ?></div>

    and in your CSS:

    div.cat_desc p { display:inline; }

    If there’s a block-level element before the P tag (such as an <h2> tag or something) then it’ll still push it to the next line. So in that case, you could do:

    <div class="cat_desc">
    <h2><?php get_the_categry(); ?></h2>
    <?php echo category_description(); ?>
    </div>

    and in your css:

    div.cat_desc h2, div.cat_desc p { display:inline; }

    It says in the function menu.

    No, it doesn’t. it says in your functions.php file. If your theme doesn’t have a functions.php file, the create one.

    So it would helpful if you were helpful.

    Wow. And with that, that’s all the help you will get from me. You’re very welcome.

    Thread Starter Doodlebee

    (@doodlebee)

    heh. I found it. I, for some unknown reason, had put “add_action(‘admin_header’…);” instead of “admin_head”. Whoops. Thanks anyway!

    The link I gave you tells exactly what to write, and where to put it. The very first sentence tells you exactly where you put it, and the very first gray box is example code of what to put. I can’t get any more clear than the codex can.

Viewing 15 replies - 376 through 390 (of 3,008 total)