forunner
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sort posts by UPCOMING datesI don’t know :p
maybe by calling the function
filter_where();Forum: Fixing WordPress
In reply to: Sort posts by UPCOMING datesbetween
//The Query
and
//The LoopForum: Fixing WordPress
In reply to: main page pic displays smaller than it is..you have to modify the line 790 of your stylsheet
#content img { margin:0; max-width:100%; }Forum: Fixing WordPress
In reply to: Post titles overlap article text. How do I fix?try to use firebug
your problem is in the css, probably in the h3 properties
modify it like you want it to be
(example, if you put a large width, the title will be on one line, but it will go outside of the div)Forum: Fixing WordPress
In reply to: Sort posts by UPCOMING dates<?php //The Query query_posts('posts_per_page=5'); //The Loop if ( have_posts() ) : while ( have_posts() ) : the_post(); .. endwhile; else: .. endif; //Reset Query wp_reset_query(); ?>Forum: Fixing WordPress
In reply to: Put an element only in the main page<?php global $post; // outside the loop if ( is_home() ) { $postslist = get_posts('numberposts=1&date=ASC&category_name=Highlights'); foreach ($postslist as $post) : setup_postdata($post); endforeach; } else { // This is not the home } ?>I don’t think there is any error inside this part of the code =p
I may be wrongForum: Fixing WordPress
In reply to: Carry the post title through to the contact pageyou can use sessions to do this
first you have to start the session in the beginning on each of your pages
<?php session_start(); ?>in your loop, if there is a title, you have to put it into a session variable
<?php if(isset(the_title())){ $_SESSION['title'] = the_title(); } ?>you can display it using an echo on the other pages
<?php echo $_SESSION['title']; ?>warning : each time you go on the line
$_SESSION['title'] = the_title();
you will replace the value of the variableso you will have to use it before to come into the loop or to put it into a new variable in the beginning of your page
<?php if(isset($_SESSION['title'])){$last_title = $_SESSION['title'];}?>hope you will understand everything (if my english seems weird, it’s because I’m french =p)
I’ve not try the code, maybe it’s not working =S ! but I think you can find tuto about php sessions everywhere
Forum: Fixing WordPress
In reply to: Carry the post title through to the contact pageo_O
try to put this in a page
echo $_SERVER["HTTP_REFERER"];
it should display the uri of the previous page !
(if you come from a previous page, and don’t type the uri directly)Forum: Fixing WordPress
In reply to: 2 lines when pressing "Enter"?I was asking if the source code created by WordPress is different when you do “your copy past from word” and when you write (with your hand and your keyboard, directly inside the editor!) it in the wysiwyg editor?
Forum: Fixing WordPress
In reply to: Carry the post title through to the contact pageI think you can have the uri of the previous page with
$_SERVER["HTTP_REFERER"]Forum: Fixing WordPress
In reply to: 404 when going to wp-admin/upload.phpI think it will not help BUT …
do you have a folder named blogs.dir in wp-content?
if not, you can try to create it (when I delete it, my wordpress re-create it when I’m on the upload.php page)Forum: Fixing WordPress
In reply to: 2 lines when pressing "Enter"?take a look at your source code to see the difference between your copy and paste code from word, and your editor code
is there any?maybe something in your css?
(I don’t know if it could help)Forum: Fixing WordPress
In reply to: Carry the post title through to the contact pagemaybe something like that in your loop
<a href="link_to_the_contact.php?title=<?php the_title(); ?>contact</a>"
Your title will be in the variable $_GET[‘title’]Forum: Fixing WordPress
In reply to: Issue on front page, just with Internet Exploreryou don’t :p !
you have to create a new stylesheet (for example : style_ie.css)
and you call the stylsheet just after your first stylsheet in the htmlin my wordpress, I have (in the header.php) :
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <!--[if IE]> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo "ie.css"; ?>" type="text/css" media="screen" /> <![endif]--> <!--[if IE 6]> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo "ie6.css"; ?>" type="text/css" media="screen" /> <![endif]-->warning : my stylsheet are called by “bloginfo(‘stylesheet_url’); echo “ie.css” because their name are style.cssie.css and style.cssie6.css
put the new stylesheet in your theme folder, near the first one 😉Forum: Fixing WordPress
In reply to: Issue on front page, just with Internet Exploreruse conditional comments to load a stylsheet for ie
<!--[if IE]> <link rel="stylesheet" href="your_stylsheet_for_ie.css" type="text/css" media="screen" /> <![endif]-->