Forum Replies Created

Viewing 15 replies - 151 through 165 (of 380 total)
  • Thread Starter ejm

    (@llizard)

    Thank you all. We’ll give your suggestions a try and let you know how it goes.

    Thread Starter ejm

    (@llizard)

    Please excuse me for answering my own question. I had hoped to see a reply from someone else but while waiting, continued to struggle with it on my own….

    I created content-archive.php with the following coding:

    <?php
    /**
     * The template for displaying archive pages content as titles only.
     *
     * Twenty_Twelve child theme
     */
    ?>
    
    		<header id="post-<?php the_ID(); ?>" class="entry-header">
    			<h1 class="entry-title">
    				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>  <small>(<?php the_date(); ?>)</small>
    			</h1>
    		</header><!-- .entry-header -->

    Rather than edit archive.php and category.php in the child theme, I’m still hoping to make the changes in the child’s functions.php. I can’t figure out what the function name is or how to call it. Here’s what I’ve tried:

    if is_archive() {
    while ( have_posts() ) : the_post();
    
    get_template_part( 'content', 'archive' );
    
    endwhile;
    }

    No big surprise, this just throws a blank screen.

    The following aside appears in twentytwelve’s archives.php and category.php. I think it might be an answer to my question. Could someone please translate it into English?

    /* Include the post format-specific template for the content. If you want to
    * this in a child theme then include a file called called content-___.php
    * (where ___ is the post format) and that will be used instead.
    */

    In the meantime, if I go to a category page, instead of seeing titles only, I see the excerpt of one post that is followed by a list of other posts in the category – with the title of the post being shown as the first in the list, but with no date for that one.

    Please help! Thank you for any light you can shed on this.

    E. Morris

    category page:
    etherwork[dot]net[slash]blog/category/whine/

    Thread Starter ejm

    (@llizard)

    WHAT an idiot I am. It’s the background image that has the gradation in colour! Please excuse me for wasting forum space….

    Thread Starter ejm

    (@llizard)

    Andrew:

    etherwork dot net slash blog slash ← purposely unlinked in attempt to keep spammers and bruteforce attacks at bay

    Scroll down the page to see the changing opacity.

    Thread Starter ejm

    (@llizard)

    Thank you for your reply. I just tried it and alas, I don’t think it’s isn’t going to work. It looks bad even on the large screen.

    I think I’m going to have to switch themes to do the customizations I want.

    Thread Starter ejm

    (@llizard)

    After receiving zero responses to this, I have somehow blundered onto a solution. It’s not pretty, but it works…. This is the coding that I have put into my template folder index.php just after the_content section and before adding the comment template. I probably should have put the coding into the template’s function.php but I don’t know how to do that.

    <?php if ('open' == $post->comment_status) : ?>
    <?php
    {
    comments_number('<a href="'. get_permalink() . '#disqus_thread" title="please comment">0 comments</a>', '<a href="'. get_permalink() . '#disqus_thread" title="1 comment so far">1 comment</a>', '<a href="'. get_permalink() . '#disqus_thread"  title="% comments so far">% comments</a>');
    }
    else : // comments are closed
      comments_number('','1 comment before comments were closed','% comments before comments were closed');
    endif;
    ?>

    I welcome concrete suggestions for tidying up the code.

    -E Morris, who only knows enough about php coding to get in trouble

    Thread Starter ejm

    (@llizard)

    Will do. (too bad I can’t just move this over so the thread isn’t repeated…)

    Just in case someone else is searching for the answer to this, the question is now at https://wordpress.org/support/topic/disqus-comments-count-not-always-showing-hyperlink-1

    Thread Starter ejm

    (@llizard)

    Once again, please excuse me for replying to myself.

    I’m pleased to report that I have FINALLY got things back again.

    Ari wrote:

    did you make sure not to upload over the wp-config.php file again?

    Ari, you were right to ask this question! After deleting, uploading, deleting, uploading and constantly running into the same problem of having WP invite me to install a new WP, the light finally dawned.

    I have a different prefix for wordpress tables in the database. The prefix is defined in wp-config. So, with my clean upload of wp-config I had neglected to change that prefix to match the prefixes in my database. Duh….

    This is what I had to change $table_prefix = ‘wp_’; to

    $table_prefix = 'mycustomizedprefix_';

    and hey, presto! The wordpress database is once again attached to my wordpress.

    Thank you again for your patient answers, Ari.

    Thread Starter ejm

    (@llizard)

    Excuse me for replying to myself. I have just looked again at the database and WHOA!!! I see that there is a brand new wordpress there in the same database. I had no idea that more than one wordpress could go into one database!

    Now that I know this is the case, I have deleted all the tables that were created. I am once again at the stage where if I go to the admin area, I’m being encouraged to start a completely new installation.

    Which is what I don’t want to do. How do I get this particular installation to link up to the previous one that is in the database?

    -E Morris, now running 4.0.1 (because I had just upgraded to 4.1.1 and so only have the 4.0.1 database as backup) This particular version has the iThemes Security Plugin running on it so the wp prefix for it has been changed in the database.

    edit: I have once again deleted everything except wp-content and wp-config and uploaded the lastest fresh version of WP (downloaded today from the WP website) I went to my admin area and was redirected to /wp-admin/install.php…. I’m having fits here. What am I doing incorrectly?

    Thread Starter ejm

    (@llizard)

    There are no silly questions, Ari. I wondered the same thing myself.

    But no. I just took a look at the files via CPanel’s file manager and everything is there (all contents of wp-content folder and all new files of wp-admin and wp-includes and necessary root files). The wp-config file appears to be correct.

    What really confuses me is that there is no trace at all of the newly formed entirely empty WP in the database area.

    Thread Starter ejm

    (@llizard)

    Thank you for your reply, Ari.

    Rats! I had hoped that your solution would do the trick.

    You were right; I had indeed overwritten my wp-config file because I thought perhaps I had somehow messed it up when I suddenly couldn’t access the admin area (redirecting to https and not found)

    I just now uploaded a fresh wp-config with the correct settings, removed wp-admin, wp-includes and all root files except the restored wp-config file (from an earlier backup)

    I then re-uploaded the appropriate fresh 4.1.1 files and am once again seeing the welcome screen that invites me to start my WP blog.

    How on earth can I get the database (that appears to have everything intact) to match up with the blog. The thing that really surprises me is that there doesn’t seem to be a new virtually empty database in phpMyAdmin for this wordpress.

    Any ideas?

    -E Morris

    Thread Starter ejm

    (@llizard)

    Having been unable to resolve this, I have deleted the plugin.

    Thread Starter ejm

    (@llizard)

    Please excuse the delay in replying. Thank you, Barnez. I do know that there are still some tenacious bots that won’t give up. I’ll try adding the plugin and hope it works.

    Thread Starter ejm

    (@llizard)

    Scanning the site helped somewhat. But I’m guessing that iThemes Security is causing 500 errors for any redirects from default permalinks to named permalinks

    There are still 404 errors appearing in the iThemes Security log that I cannot tell have been caused by my error or not. The IPs trying to access the files are generally benign.

    /myWPfolder/2006/05/recipes/photopages/breaddough.html

    I’ve tried to find these errors on my WP but do not know where to look (aside from going to that page and not finding the offending link).

    Another 404 that really confuses me is this one:

    /myWPfolder/2014/12/

    Of course, there are no entries for December yet. So, am I correct to assume that there is nothing I can do about this?

    Thank you for any help you can offer.

    -E Morris (Since starting this thread, I have updated from WP4.0 to WP4.01)

    Thread Starter ejm

    (@llizard)

    Good idea, Barnez. I’ll try that.

Viewing 15 replies - 151 through 165 (of 380 total)