Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • In the ‘Titles & Metas’ admin section, the label says:

    I don’t know why you’d want to use meta keywords, but if you want to, check this box.

    Are there negative effects of using the keywords meta tag? I understand that search engines place far less weight (if any) on the tag, but has the tag now become completely unnecessary?

    Thanks

    Thread Starter thebiganswer

    (@thebiganswer)

    Hi Richard,

    Thanks for your reply. I agree, it’s extremely odd that the plugin would in any way cause/contribute to a redirect loop. If I get the time I’ll try to find out more about why it happened. You’re quite right, updating WordPress is something very much on the agenda.

    Thanks.

    Hi Jim,

    Very good question. I’d also like to know…

    Thread Starter thebiganswer

    (@thebiganswer)

    Hi Joost,

    Specifically the ‘Disable the date-based archives’, which I’d like to uncheck. However, it seems that many of the changes I’m trying are persisting. One that does seem to persist is ‘Nofollow comments links’.

    Thanks

    Thread Starter thebiganswer

    (@thebiganswer)

    Hi Brad,

    Thanks for your reply. I uploaded using Filezilla after installing/configuring the WP Super Cache plugin. Your advice regarding ‘nobody’ permissions matches something I’ve read elsewhere so this may well be the way forward.

    I’ve just noticed that the WP Super Cache plugin has updated the file, so it appears to have sufficient permission of its own. (I wonder now whether I did in fact ever have permissions to upload the file – perhaps the .htaccess file was already there and I ignored the original 550 FTP error message.)

    I’ve verified that the compressing and expiration headers are working (Yslow Firefox plugin) so this may be a ‘storm in a tea cup’ after all. Still, I’ll try to find out why I’m blocked.

    Thanks.

    Thread Starter thebiganswer

    (@thebiganswer)

    @frogsplash

    Thank you for your solution. I recently returned to this issue and I’m now using something very similar to that which you’ve suggested.

    Regards

    Thread Starter thebiganswer

    (@thebiganswer)

    A few extra notes:

    1) You may find that skipping steps 4 and 5 (create new .htaccess, upload) works for you. This means NOT uploading a new .htaccess file to the server, and just letting WordPress create one.

    2) If your Web site is running on a shared hosting platform (i.e. alongside other Web sites which are not under your domain control), you may find that your site is repeatedly comprismised – in spite of your best efforts.

    Thread Starter thebiganswer

    (@thebiganswer)

    (In response to my own post, it is true of version 3.0.4 at least – my problem was correctly understanding the template naming convention)

    Ok, after some head scratching trying to get my custom post type permalinks to resolve to the corresponding template file rather than the 404 error page or otherwise, here’s a few notes for anyone having a similar issue:

    Example
    So you’ve created/registered your custom type in your functions.php file, e.g.:

    `add_action(‘init’, ‘create_music_event’);
    function create_music_event() {
    $music_event_args = array(

    ‘labels’ => array(
    ‘name’ => __( ‘Music Event’ ),
    ‘singular_name’ => __( ‘Music Event’ )
    ),
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘capability_type’ => ‘page’,
    ‘hierarchical’ => true,
    ‘rewrite’ => array(‘slug’ => ‘music-events’),
    ‘description’ => ‘Music events’,
    ‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’, ‘custom-fields’, ‘page-attributes’)
    );
    register_post_type(‘music_event’,$music_event_args);
    }`

    And you’ve created some ‘music event’ posts from your admin panel. But which template will these ‘music event’ posts use when rendering the page? Well, if you copy your ‘single.php’ file, rename the copy ‘single-music_event.php’ then follow the link to you music event post, you should see your music event post.

    Verify
    You can check it’s using your custom template file by inserting some text, e.g. <h1>Look I'm using the custom template file</h1>, in the single-music_event.php file.

    What’s the point of all this?
    Well if you want to use custom types, and you want your custom type ‘music_event’ posts (for example) to have a different look and feel to your standard/other posts and pages, then custom templates are ideal.

    Other Issues
    Another issue you may find when working with custom templates is getting 404 error due to conflicting (i.e. identical) slug names. Without going into any detail (there are plenty of Google results) you may have created a Page which shares the same slug value as your new custom post type. For example, let’s create a new Page called ‘Music Events’ and see that WordPress uses ‘…/music-events’ as the slug. Well now, our custom type (see example above) also uses ‘music-events’ as the slug value. WordPress won’t like this and you’ll likely see a 404 error and/or whatever your 404.php template tells you.

    Thread Starter thebiganswer

    (@thebiganswer)

    While I have it in mind, there is another solution which was posted elsewhere…

    3) …if you switch your theme to another theme, and then [immediately] change it back again, this has been noted to enable (i.e. make visible) the parent drop-down list.

    Thread Starter thebiganswer

    (@thebiganswer)

    @iteamweb: thank you for your reply. In the header.php file which comes with the the theme I’m using (Linoluna), and also the default WordPress header.php file, the following…

    <div id=”page”>

    …is stated but it is not closed in the same file. I’ve also looked in the footer.php file and there is a </div> which is not opened; I’m guessing this is the closing tag.

    I’m still learning my way around WordPress so I’m keen to learn the best practices.

    thebiganswer

    (@thebiganswer)

    Hello,

    I have a similar question which I hope will add to your initial question: how might I make the link_after conditional based on the tier/level?

    For example:

    <?php wp_nav_menu( array( ‘theme_location’ => ‘my-nav’, ‘container_class’ => ‘menu-header’, ‘link_after’ => ‘ >>’ ) ); ?>

    The above will append ” >>” to the menu item. That’s ok for subitems with children, but it doesn’t look very good on header items nor end-nodes, as it would negate the usefulness:

    Home >> About >> Etc >>
    Companies >> Etc sub item >>
    Acme Tech >> Etc sub item 2 >>
    Acme Global >>
    Team >>

    Ideally it would check if a child exists and only then append the ” >>” and additionally it would start from level 1 (where level 0 is the header level), like so:

    Home About Etc
    Companies >> Etc sub item
    Acme Tech Etc sub item 2 >>
    Acme Global Etc sub item 2 (child)
    Team

    (I would have started a new thread but I found this one and I feel it is related – if not, please advise)

    I’d appreciate any commments and thanks to DeNiro for the initial posting.

Viewing 11 replies - 1 through 11 (of 11 total)