transpersonal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to change the location of wp-login?Actually, I made a mistake. Icanhascheezburger does have the wp-login page. If you type it without the .php extension is gives a 404 but with the php extension it brings up the page. This is weird because on my blog the wp-login page shows up even if I leave out the .php. In the mashable (with the .php extension) an authentication screens pops up which leads me to believe that they just put an additional htpasswd authentication. So I guess the wp-login can’t be moved, oh well…
Forum: Fixing WordPress
In reply to: How to disable ‘right-click’ features like copy & saveYou can get rid of the id and class, didn’t realize I had that in the code.
Forum: Fixing WordPress
In reply to: How to disable ‘right-click’ features like copy & saveIt;s true that there is no real solution to this – if you put your work on the web there is always a chance that it will be copied. But since the question was how to disable right click, you can replace your <body> tag with this:
<body onload=”;init_start(); ” id=”bodytag” class=”bodyContent” oncontextmenu=”return false;” >
But like others said, this does nothing when JS is disabled or if you know how to press Control + U. If you are concerned about hotlinking it may be better than nothing (if you don’t use htaccess to disable it) as some casual hotlinkers may find it inconvenient. Although with firefox’s media tab even that doesn’t seem like much of problem when trying to get the location of bulk images…
Forum: Fixing WordPress
In reply to: How to display the number of posts under each tag?Thank you so much t31os_!!!
It works perfectly and greatly reduced my original code size. As a token of my appreciation I want to give you two free premium wordpress themes and a premium plugin. Email me if you’re interested ([email protected]),
Thanks again.
Forum: Fixing WordPress
In reply to: How to display the number of posts under each tag?Thank you so much for biting t31os_!!!
There’s a little problem though, currently I list my tags alphabetically:
I have a A-Z navigation at the top of the page and 25 blocks of code as below:
<div id="a" class="abc_tags"> <ul> <?php $tags = get_tags( array('name__like' => "a", 'order' => 'ASC') ); foreach ( (array) $tags as $tag ) { echo '<li><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></li>'; } ?> </ul> </div>
Clicking on “A” in the navigation for example brings the person down the page to A tags and clicking K brings them further down the page to the K tags (anchor links). So that’s why I need the code to be inside their own blocks (loops?) like above.
I tried mixing your code to integrate with mine but after about a thousand fatal errors I turn to you again for help (I’ll learn PHP very soon I promise).
You code produces a vertical tag cloud that is in no particular order.
I need it to be in alphabetical order and also for each alphabet tag to be inside it’s own loop/div (I will then reproduce it 26 times for each alphabet).Forum: Fixing WordPress
In reply to: How to display the number of posts under each tag?At least can someone please tell me if this is possible or not. I have been stuck on this thing for the past week now and would prefer to know so I can move on.
Thanks.
Forum: Fixing WordPress
In reply to: How to display the category slug and not the category name?Stupid me, I can’t believe I missed those threads. I always use google to search wordpress threads – I will remember to use the wordpress search function the next time. Thank you very much for your help songdogtech!
Forum: Fixing WordPress
In reply to: How to display the category slug and not the category name?Thanks a lot songdogtech!
The solution I got from the second thread worked perfectly for the category slug:
<?php
if (is_category( )) {
$cat = get_query_var(‘cat’);
$yourcat = get_category ($cat);
echo ‘the slug is ‘. $yourcat->slug;
}
?>Now if someone can please tell me how to display the tag slug?
Forum: Fixing WordPress
In reply to: How to Disable the Comments RSS Feed OptionI’ll bump this again.
Here is the link that is automatically inserted by wordpress in the head section of my site:
<link rel="alternate" type="application/rss+xml" title="SITENAME » NAME OF POST/PAGE Feed" href="https://www.mysite.com/postname/feed/" />
How can I get rid of this using a functions.php hack. It probably will be something like this but for the above link:
remove_action(‘wp_head’, ‘index_rel_link’);
Please help!!!
Forum: Fixing WordPress
In reply to: How to Disable the Comments RSS Feed OptionDoe anyone know?
Forum: Fixing WordPress
In reply to: How to display random posts from a given category?I’m not trying to exclude categories but to display random posts from a particular category. Anyway, I have too many plugins already and would prefer to do this without any plugins or not do it at all.
Forum: Fixing WordPress
In reply to: How to display random posts from a given category?help please!
Forum: Fixing WordPress
In reply to: How to display random posts from a given category?My code was stripped. here’s the full code:
<?php $randomPost = $wpdb->get_var("SELECT guid FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' ORDER BY rand() LIMIT 1"); echo '<a href="'.$randomPost.'"><span>Random Post</span></a>'; ?>
Forum: Fixing WordPress
In reply to: can’t find the FTP directoryStrange, Are you sure it’s not inside the “webspace/httpdocs” folder.
Thanks that answers it.