Forum Replies Created

Viewing 12 replies - 571 through 582 (of 582 total)
  • I too use exec-php. I tried one of the other ones (I don’t remember which) and it wasn’t compatible with the “email this” and “print this” plugins I have installed; users were getting the PHP code emailed and printed, instead of the output of that code. I asked the email/print plugin author why, and he said I wasn’t using a “proper” PHP plugin. I switched to exec-php and it works fine.

    I recently converted 500 .SHTML files into a single WordPress blog. I wrote a script that read each file in turn then outputted them into a single .TXT file formatted as a WordPress import/export. See my explanation:

    https://blogs.computerworld.com/importing_to_wordpress_try_an_apple_ii

    An alternative: maybe you could convert your files to JPEG/GIF and then create a photo gallery out of it? You’d obviously lose the ability to cut/paste, but it could be a quick solution.

    Lucky you! When I accidentally overwrote my SQL database with no backup of my own, my hosting company “lost” their backup, too. Fortunately, I was able to grab the content out of Google’s cache and paste it into a new database.

    Thread Starter kgagne

    (@kgagne)

    Thanks! Hmm. My problem isn’t with <p> tags. What I need to do is a find/replace from this string:

    </td>
    </tr>
    </table>
    <p>

    to this:

    </td>
    </tr>
    </table>
    <p><!–more–>

    I’ll find another way to get into the SQL database to do this.

    Thread Starter kgagne

    (@kgagne)

    Sorry – I thought I had, but I can see I didn’t format my original post correctly. Considering that misfiling, I’m surprised anyone has answered at all! Thanks.

    Here’s the URL:

    https://www.ads-software.com/extend/plugins/search-and-replace/

    This thread solved my problems – after trying all other solutions, I finally came across the last one to edit wp-config.php, and it worked! Thanks for this archive ??

    Thread Starter kgagne

    (@kgagne)

    Aha! Got it. On line 337 of wp-admin/import/wordpress.php, I changed line 337 from

    if ($post_id = post_exists($post_title, ”, $post_date)) {

    to

    if ($post_id) {

    I realize this produces unrecommended and irregular behavior — but it’s what I need for this specific instance of importing.

    Thread Starter kgagne

    (@kgagne)

    It seems I can create multiple pages with the same slugs, so long as they have different parents. So blog.com/mother/child and blog.com/father/child can be two different pages peacefully co-existing.

    I need to import a WordPress XML file I’ve manually created. It has multiple pages with identical slugs but different parents. When I try to import this file, WordPress tells me, “This page already exists”, and skips it. How can I prevent that behavior?

    Thread Starter kgagne

    (@kgagne)

    Thanks! That plugin looks promising. Its web documentation suggests:

    Passing values to the form:
    To allow values to be passed directly to the form, all you have to do is change all references of $_POST to $_REQUEST (The REQUEST superglobal contains the values of both POST and GET items)

    I’m not sure I understand how to do that, but the above does seem to suggest it’s possible to have varying default recipients based on where the visitor is coming from. I’ll work at it… Thanks!

    Thread Starter kgagne

    (@kgagne)

    My old site uses static HTML files and folders. I would like to migrate its content to WordPress without breaking the links.

    An example of an existing file is this:

    https://www.gamebits.net/gcn/crzytaxi.shtml

    I’d like to paste that file’s content into a WordPress post, slug name “crzytaxi.shtml”, under category “gcn” – that would produce an identical URL to the old content. But it seems slugs can’t contain periods. So I thought it’d work to use a permalink redirect plug-in, incdicating that

    /%category%/%postname%.shtml

    should now point to

    /%category%/%postname%

    But I can’t seem to get that to work, either. Do I have the right concept? If so, where is my error in execution?

    -Ken

    I just wanted to say “thanks!” for sharing this trick… I’m glad I searched the fora before posting a new thread asking this very question.

    Thread Starter kgagne

    (@kgagne)

    Neat – I hadn’t thought of that… thanks!

    While my brain wraps around this approach, I find myself with more questions:

    – There is a way for the main page to default to a particular category, isn’t there? I would want a category of postings called, say, “blog”, which would not be reviews (see the main column on the front page of the current https://www.gamebits.net/ site).

    – When visitors click on a category such as “PlayStation 2”, is there a way for the output of that click to mimic the “Name, Publisher, Rating” three-columned output currently seen at https://ps2.gamebits.net/ ? (Is this what the “optional excerpt” part of the post-writing process would be for?)

    Some of these questions must have strikingly obvious answers to WordPress veterans. I really am new to this medium and appreciate any patience or help. Thank you again.

    -Ken

Viewing 12 replies - 571 through 582 (of 582 total)