wpquestionscom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Email-serviceThere are 2 general approaches to this type of feature.
1. Use Feedburner’s “subscribe by email” feature. This free service of feedburner.com will allow visitors to your site to subscribe or unsubscribe from your blogs RSS feed by email. Instead of using a news readers your subscribers can get updates via email.
2. Maintain you own email signup database and send out your own updates. You can do this by using a newsletter plugin or php script on your site. When you make a new post you can then send out an email to everyone on the list letting them know about it.
Personally, I’d go for #1.
Forum: Fixing WordPress
In reply to: Add an additional page of postsCategories do a pretty good job of separating out posts by topic. Each category also comes with its own page to show only its posts. If you want to exclude your new category from showing on the main page there are lots of different ways of handling that.
The most common is to place the below right after your loop starts:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if (in_category('3')) continue; ?>
where ‘3’ = the id of the category you want to exclude.
Forum: Fixing WordPress
In reply to: Limit what ‘Contributor’ users see in the admin areaI have post at wordpress questions that looks at this issue and offers a few plugin ideas at the bottom. Let me know if you need more help.
Forum: Fixing WordPress
In reply to: wp_list_author() just for authors not subscribers.wp_list_authors should really be called wp_list_users
As far as I know you can only exclude the admin account and any user with 0 posts (regardless of role).
If this is the case, your only option would be to create a custom function which selects from the database authors by role or you could look for a plugin. I didn’t have much luck finding a plugin for you.
Forum: Fixing WordPress
In reply to: activate a pluginTypically, the plugin must first be activated in the plugins menu before you will see its associated widget.
Forum: Fixing WordPress
In reply to: How do shorten posts and add a link to “read the full article”There are about 4 options to summarize posts. The “more” tag, the excerpt, custom excerpt and an excerpt plugin. The problem with all of them is, once they reach the number or words or tag that defines the summary boundary nothing after will be display(ie: your images). Complicating things further, WordPress strips out tags and images from excerpts.
There may be others ways to do this but the only thing that’s coming to mind is to use one of the above methods for getting the text summary and then sticking the images you want to display with summaries in a custom field.
You can then display the text summary with the more tag or some other method and then display the images saved in a custom field.
Forum: Fixing WordPress
In reply to: Displaying posts fromcategorie based on custom fieldTry making a seperate query and adding that to your wp_query object this way:
$querystring = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'Esat' AND wpostmeta.meta_value = 'Hennebont' AND wposts.post_status = 'publish' AND wposts.post_type = 'post' ORDER BY wposts.post_date DESC "; $myposts = $wpdb->get_results($querystring, OBJECT);
You then have to setup $myposts and loop through the results.
Forum: Fixing WordPress
In reply to: Sidebar ends up at bottom of single postSomething in the formatting / css of your single.php is taking up too much width on the left side or your layout. This causes the right floating sidebar to appear below.
Single.php typically includes comments.php. I would take a look at those two files (single.php and comments.php) and try to figure out which css definition, tag or markup is too wide for the layout. If you are using the exact same code for the content loop on single.php as you do on index.php then you can assume the problem is in the comments.
It could also be something more random like stray markup or tags being inserted by a plugin.
Forum: Fixing WordPress
In reply to: How to remove ‘Recent Posts’ from sidebarI agree with spstieng. Unfortuantely, the css class names and their definitions in style.css are specific to your theme, so, I couldn’t really tell you what “scenter” or “sbottom” do. As spstieng suggested you can look up those classes in your style.css class and remove them or remove lines that look like
border:1px solid #000;
frome their definitions.You can also try removing the <div> from your sidebar.php. For example you could remove
<div class="sbottom"></div>
or try<div class="stop"></div>
The only problem here is that if these classes are using floats or clearing floats it could mess up your layout.
Forum: Fixing WordPress
In reply to: WP blog hacked, password changed, site delistedWith PHPMyAdmin open you need to click on the name of the database WordPress is using.
Then click on the words wp_users
Click on the Browse tab at the top.
Find the entry for the admin account and look at it’s values.
You can edit the values for the admin account by selecting the pencil (edit) icon to the left of the row.
If you change the password you must choose MD5 from the function dropdown.
Forum: Fixing WordPress
In reply to: How to make the excerpt into a custom key? or Using Custom FieldsIn the content loop do something like this:
<?php $key_name="your custom field name"; $key_value = get_post_meta($post->ID, $key_name, true); ?> <?php echo $key_value; ?>
if your custom field is called excerpt it would look something like this:
<?php while (have_posts()) : the_post(); ?> <?php $key_name="excerpt"; $key_value = get_post_meta($post->ID, $key_name, true); ?> <p> <?php echo $key_value; ?> </p> <?php endwhile; ?>
Forum: Fixing WordPress
In reply to: WP blog hacked, password changed, site delistedBefore attempting to recover your login information I would verify through an sql interface (such as PHPMyAdmin) that the admin email account is still set to something you have control over. While you’re in there you might want to backup the database WordPress is using.
After that you can recover your login with the “forgot password” option or by resetting the admin password in the wp_users table of the WordPress database. Don’t forget to MD5 the new password and check for rogue admin accounts.
Good luck.
Forum: Fixing WordPress
In reply to: How to put a post page in top nav barYou can put a post title any where you want. The method you use to do that will depend a lot on what exactly you are trying to accomplish.
If you just want to put a single title of an already published post into your navigation bar, then just link it manually with good ol’ html.
If you are trying to do something more complicated, like display your latest post in a navigation, let me know.
Forum: Fixing WordPress
In reply to: wp-admin page won’t loadare you able to get to /wp-login.php ? When you get the white screen what does the URL in your address bar?
Check your permalink structure and your .htaccess file for any weirdness.
Forum: Fixing WordPress
In reply to: How to remove ‘Recent Posts’ from sidebarThat looks like the right code to remove. You will probably want to get rid of all that, but if you want to test it out just remove
<?php the_title(); ?>
and
<?php _e('Mensajes recientes'); ?>
to start. This will still run the query but wont display anything. If this removes the content you want, the go back and get rid of the rest.