Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?OK, what happens is if you make your blog page private, you can still get to it if not logged in, it just doesn’t appear in the menu. If you set individual blog posts to private, then you get the 404 if not logged in.
So now I think we can get somewhere… 🙂
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?For hidden pages, the most common way to do that is to use the Exclude Pages plugin, which basically just takes the page out of the menu, since all pages are added to the menu by default.
A private (visibility set to private) page or post should not be viewable if a user is not logged in. You should get a 404.
I’ll get to the rest of your question in a bit, need some coffee. But for starters, how do you have your site setup, specifically
Settings->ReadingThe first setting:
Front page displayscan be set to
Your latest postsorA static page (select below)I’ve created a blank page titled “blog” and set the above to
A static pageand chose “blog.”Are you doing something similar to that?
Forum: Fixing WordPress
In reply to: Duplicate category pagesOK, thanks, I thought that might be, just wanted to make sure. If I come up with anything, I’ll let you know. I haven’t been able to duplicate it.
Forum: Fixing WordPress
In reply to: Remove hyperlink from the post titles that have no content.Awesome, you’re quite welcome!
Forum: Fixing WordPress
In reply to: RSS error: Extra content at the end of the documentStrange, I’ll have to think on it. I looked through the
feed.phpin core to see what it was doing, but the only possible I think I could think of on first glance was something to do with the_content.Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?Private is different from hidden. Private posts/pages are only visible to admins and editors. The code I posted strictly deals with “hidden” pages (not private and not for posts). A normal reader would never see a private page. That said, is that still something you need?
Yes, I could certainly make a configurable option (basically an arrays of IDs to ignore).
I took your request literally, and set it up for pages, as you can use the Excluded Pages plugin to “hide” a page from the menu. Posts don’t have that option, at least not with that plugin. How are you hiding posts? (or are you using private?)
Forum: Fixing WordPress
In reply to: Remove hyperlink from the post titles that have no content.Sorry about that…try this updated code:
<?php if ( strlen( get_the_content() ) ) { echo '<a href="'; the_permalink(); echo '">'; } the_title(); if ( strlen( get_the_content() ) ) echo '</a>'; ?>Forum: Fixing WordPress
In reply to: Blog Died After Upgrade!This could be caused by a MySQL binary upgrade on the server (without a dump and reload of the tables) or corrupted tables.
Maybe someone who’s had this problem before can chime in, but basically the messages are telling you what you need to do. Run:
REPAIR TABLE wp_termsat a MySQL command line or via phpMyAdmin (or equivalent), obviously for every table listed. Be sure and do a database backup first.
Forum: Fixing WordPress
In reply to: Error Message when creating a new postAre you sure you’re using WordPress 3.6.1? WordPress 3.2.1 was the last version to have
dashboard.css.Forum: Fixing WordPress
In reply to: Remove hyperlink from the post titles that have no content.Since you’re in The Loop, you could use something like this:
<?php if ( strlen( get_the_content() ) ) echo '<a href="<?php the_permalink() ?>">'; the_title(); if ( strlen( get_the_content() ) ) echo '</a>'; ?>Forum: Fixing WordPress
In reply to: Blog has ben disconnected!I’m not sure on the Chrome extension thing. But between Wayback Machine and Google cache (search for your site), you might be able to get some of it back. Best of luck.
Forum: Fixing WordPress
In reply to: Blog has ben disconnected!http://web.archive.org/web/*/http://www.finskis.com/(Sorry, I couldn’t seem to make a proper link with the archive.org uri structure)
Forum: Fixing WordPress
In reply to: Blog has ben disconnected!Wow, normally I would expect a host to give you a little grace period or maintain a backup for a limited time. I’d find a new host. And you definitely need to learn how to do your own backups (or hire someone) regardless.
You might be able to find some of it using Google cache, but depending on what your content was, that may not be much help.
Forum: Fixing WordPress
In reply to: Blog has ben disconnected!Did your partner forget to pay the domain name fee or hosting fee? In either case, you should probably contact your host, especially if it was the later.