clay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: .htccess and /page/indranil: Not sure if you figured this out or not but I will respond anyway for future reference:
You replace the first part with whatever url you would like to access the page by
for example:
RewriteRule /news/ ^index\.php [R=301,L]
would point the url: https://www.example.com/news/ to index.phpForum: Fixing WordPress
In reply to: permalinks: a moment of clarityOne thing to note is that your chosen schema for permalinks has a strong possiblity of not resulting in a unique link.
As time goes by it might become frustrating to need unique post titles for every single entry ever made.
I would suggest adding something like the date to your permalinks schema
ie
/%day%/%postname%/Forum: Everything else WordPress
In reply to: Site RippedWhen does a ‘template’ you took from someone else become your own?
It seems pretty obvious to me that site is a testForum: Installing WordPress
In reply to: I am so lost…Oh god- please change your database password IMMEDIATELY!
Forum: Fixing WordPress
In reply to: Error page in case of DB connection problemthey were working on the database server earlier
Forum: Installing WordPress
In reply to: I am so lost…do you have access to phpmyadmin?
Can you give some more details about what you have done?
A link to the site?Forum: Installing WordPress
In reply to: Inherent CSS for WordPressprint.css is a simplified layout that creates a ‘print friendly’ page when a user prints something from the site
Forum: Fixing WordPress
In reply to: Error page in case of DB connection problemedit wp-includes/wp-db.php
Find the part that says:
//DB Constructor - connects to the server and selects a database
function wpdb($dbuser, $dbpassword, $dbname, $dbhost) {
$this->dbh = @mysql_connect($dbhost,$dbuser,$dbpassword);
if (!$this->dbh) {
You will see the text that is displayed on a database error- change it to whatever you like
die(“<div>Forum: Fixing WordPress
In reply to: Error page in case of DB connection problemanother ipower customer..
Forum: Installing WordPress
In reply to: Should I Even Bother?Moshu:
Do you use linksky?
Their prices seem pretty good- Especially the Ultra- how is the uptime? Any problems with them?Forum: Fixing WordPress
In reply to: Excluding posts from the main pageIf you compare https://www.adailyadventure.com/journal/ with https://www.adailyadventure.com/journal/posts-cats.php You will see the solution in action: This is my edited ‘content’ file
<?php include ('wp-includes/header.php') ?>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php if (! in_category(9)):?>
CHANGE THE NUMBER IN PARENTHESIS TO THE CATEGORY YOU DO NOT WANT DISPLAYED
<?php the_date('','<h2>','</h2>'); ?>
<div class="post">
<h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h3>
<div class="storycontent">
<?php the_content(); ?>
</div>
<!--
<?php trackback_rdf(); ?>
--><div class="feedback">
<div class="CommentNumber">"><?php comments_number(); ?></div>">Leave a Comment</div>
</div>
Add the below ENDIF statement
<?php endif;?>
<?php endforeach; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
<div id="pagination"><?php posts_nav_link() ?></div>
<?php include ('wp-includes/footer.php') ?>Forum: Fixing WordPress
In reply to: Excluding posts from the main pageoh- you can use the same basic idea.. an if statement which excludes the category you want not displayed..
I can help more when i get home from workForum: Fixing WordPress
In reply to: Excluding posts from the main pageactually scratch that previous answer this SHOULD work-
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<?php the_date('','<h2>','</h2>'); ?><?php $postid = the_ID();
if ($postid != theidyoudontwanttodisplay) ?>
<div class="post">
<h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h3>
<div class="storycontent">
<?php the_content(); ?>
</div>
<!--
<?php trackback_rdf(); ?>
--><div class="feedback">
<div class="CommentNumber">"><?php comments_number(); ?></div>">Leave a Comment</div>
</div>
<?php endif ?>Forum: Fixing WordPress
In reply to: Excluding posts from the main pageAn if statement such as this:
<?php if ($posts and postID != postyoudonotwanttoappear) : foreach ($posts as $post) : start_wp(); ?>
That exact code will not work- but that is the basic idea of what you want to doForum: Fixing WordPress
In reply to: how to adjust the old html-pages?t-mo: That is pretty far off the topic of this thread, I suggest making a new thread with your question