Forum Replies Created

Viewing 15 replies - 211 through 225 (of 237 total)
  • The WordPress Codex is a good starting point to understand WordPress. For specific questions, there is nothing that beats an internet search. 🙂

    I think you are trying to add code while being in the Visual Editor. Any code that you add will not be parsed as actual HTML and will just show up on the post as text. You have two options

    1) Switch to the Text editor (should be visible on the top of the editing space) and paste your code between the text where the image should appear (OR)

    2) Click on the “Insert Media” button and choose the “Insert from URL” option

    Hope this helps.

    In your wordpress admin page, click on Posts and then select Categories. Mouse over to the Mediabox category, you will see that the link is similar to something ending like this

    wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=3&post_type=post

    the value of tag_ID is the category ID. Change this in the header.php <span class="media"><a href="http://www.politricks.co.in/?cat=x"> where x is the value you just found above.

    PS: I second silver’s opinion that you should use category names in all your links instead of ?cat=x.

    PPS: Sorry mate, but the guy who set up the site didn’t do a great job. I think you are better off starting from square one. If you need any help, let me know.

    Hi,

    I think you will need to start with the theme’s comments.php (/wp-content/themes/<theme-name>/comments.php). I see that you also have plugins related to comments installed which could be adding text. If that is the text you want to update (for e.g: the commentluv checkbox), you will have to edit the corresponding plugin (wp-content/plugins/<plugin-name>/).

    Can you describe more on what changes you want to do?

    Regards,
    Ramesh (thecodeisclear)

    Thread Starter Ramesh (thecodeisclear)

    (@thecodeisclear)

    Thanks Gerald. I will try the FTP method, though I am not certain which plugin is causing the problem.

    I was going through my email and I noticed that there has been a spike in user registrations (bots no doubt). Could the emails be WP trying to email all users?

    Regards,
    Ramesh

    Plugin Author Ramesh (thecodeisclear)

    (@thecodeisclear)

    There was a problem with the SVN structure and I had to place the file in the right sub-directory. The .zip now contains the plugin file. Thanks for using my plugin.

    Plugin Author Ramesh (thecodeisclear)

    (@thecodeisclear)

    This has been fixed. I had to move the plugin file into the right folder for the changes to reflect in the .zip file Pls. try now and thank you for trying out my plugin.

    Plugin Author Ramesh (thecodeisclear)

    (@thecodeisclear)

    @garance. I am not sure what the problem is. Through SVN, I can see the .php file within the “trunk” folder as required. (http://plugins.svn.ww.wp.xz.cn/timeline-for-categories/trunk/). While I resolve this, you can download the plugin from my website.

    Thanks for your patience.

    @dean_l. Thanks for the link. I am thinking of making the permalink change (as suggested by Yoast)

    Welcome. Glad I could help. I didn’t get much time to test this out except for checking for parsing errors and a quick check on a couple of posts.

    function twentyeleven_posted_on() {
        if ( in_category( 'Political Artwork' ) ) {
            // If the category is Political Artwork, write out Posted Date
            printf( __( 'Posted <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>', 'twentyeleven' ),
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                esc_attr( get_the_date( 'c' ) ),
                esc_html( get_the_date() )
            );
        }
        elseif ( in_category( array('Scripture', 'Quotes') )) {
            // If the category is "Scripture" or "Quotes", use "Posted by"
            printf( __( '<span class="sep">Posted<span class="by-author"> <span class="sep">by</span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a>. Posted </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a></span></span>', 'twentyeleven' ),
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                esc_attr( get_the_date( 'c' ) ),
                esc_html( get_the_date() ),
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
                get_the_author()
            );
        }
        else {
            // All other categories, use "Written by"
            printf( __( '<span class="sep">Written<span class="by-author"> <span class="sep">by</span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a>. Posted </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a></span></span>', 'twentyeleven' ),
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                esc_attr( get_the_date( 'c' ) ),
                esc_html( get_the_date() ),
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
                get_the_author()
            );
        }
    }
    endif;

    Hi,

    This piece of code should work.

    function twentyeleven_posted_on() {
        if (! in_category( array('Political Artwork', 'Quotes') )) {
            printf( __( '<span class="sep">Written<span class="by-author"> <span class="sep">by</span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a>. Posted </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a></span></span>', 'twentyeleven' ),
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                esc_attr( get_the_date( 'c' ) ),
                esc_html( get_the_date() ),
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
                get_the_author()
            );
        }
        else {
            printf( __( 'Posted <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>', 'twentyeleven' ),
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                esc_attr( get_the_date( 'c' ) ),
                esc_html( get_the_date() )
            );
        }
    }
    endif;

    Within the printf each %n identifies the corresponding argument (values returned from the esc_* functions). So %1$s --> esc_url( get_permalink() ). I have removed the arguments 5, 6 & 7 which correspond to the author details.

    Hi,

    Here is the updated functions.php file – http://pastie.org/4363507

    I tested this on my local install of WP. Here is the screenshot of the results
    http://thecodeisclear.in/wp-content/uploads/2012/07/category-author-details.png

    If you can send me your current functions.php file, I could edit it and send it back. (or you could load it somewhere like pastebin/pastie.org)

    Plugin Author Ramesh (thecodeisclear)

    (@thecodeisclear)

    @truthlighthouse: The plugin error message has been fixed. Could you please test if this works now?

    Thanks for your time.

    Welcome. I think it required a clearing of the cache to see the effect.

    By editing the style.css of the theme, you can customize the colors. A quick fix is to change the background image & header image, since most of the colors (in CSS) are dark and should blend easily with other combinations (IMO).

Viewing 15 replies - 211 through 225 (of 237 total)