vachi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to make a div class visible to loged in users onlytx, i totally forgot about that, i guess i should stop these all nighters they are taking my logic away
Forum: Fixing WordPress
In reply to: Problem Adding/Saving Code to Headermaybe take the header.js and put it under your blog folder, like the same place your header file is
Forum: Fixing WordPress
In reply to: Creating a page that lists its childrenor you can make a page template and have wp_list_pages() in the template file.
Forum: Fixing WordPress
In reply to: New Pagesi think you mean sub pages, is that right? such as about page and sub pages of like each author or etc
?Forum: Fixing WordPress
In reply to: static home pageyeah don’t worry PHP will not bite you, i was always scared of playing around wit the PHP code but its nothing to worry about, most WP themes are well organized and you can see where each component is easily and remove or change them with ease. with the author picture, that could be done through gravatar, like how comment systems get the commenters email and match it with their gravatar account to get the avatar shown. check out their site http://en.gravatar.com/site/implement
Forum: Fixing WordPress
In reply to: Uploading a new Plug-Inwhy don’t you try up;loading using a ftp client, is this your own hosting or is this some service?
Forum: Fixing WordPress
In reply to: Creating a form on an external page to post articlewell idk of any way of doing this, but you can more easily include the new-post page in your site, where once the user logins the new post page should load if you have the correct headers calling at the beginning of the page, idk if this would work just an idea
Forum: Fixing WordPress
In reply to: Stubborn Pageswhen you make a post or page, under the tittle there is a placde for permalinks i see that you are using fancy permalinks :), so under the permalink edit it too match your link such as http://thefootballprofessor.com/archives/
see if that works, also i have not tried this theme before idk how it manages your pages and so on, so the solution above is just a guess that it will work
Forum: Fixing WordPress
In reply to: Custom Field Errormost bugs that you notice with 2.5.1 is from the themes, well in my cases they were from the themes. where do you get the error, and how are you calling for the meta field
Forum: Fixing WordPress
In reply to: troubles with export and plugins!godaddy should have a mysql database feature, fist back up the mysql database, than the WP installation
than update WP and see what happens, maybe you would want to update to like a bit later version not the newest, like 2.3 not 2.5i have before done an export of a very big site my movie website from 2.3 to 2.5 and it worked, sadly my categories were messed up but mostly it worked ok, than i did the same thing with taking out the databases the post, post meta and so on, and changing them to match the new structure of 2.5 and this worked too even though some things were lost, your best bet is just updating to like 2.3 and trying to export there, the export file is a xml, its just shortcuts, when your wp imports it there is no data really imported from your pc its all from your older site
Forum: Fixing WordPress
In reply to: Images in a newspaper like blog?idk if there is a plugin but you can get this done using the post meta fields.
in the meta field you can create two fields one for big image and one for small
than call on these fields in your loop and your index file .http://codex.wordpress.org/Meta_Tags_in_WordPress
you should really use meta tags they are great, and you can have code directly in the meta tag field, or you can have code that will take the meta tag content and use in
i use meta tags a lot
yeah thats why i had to make my page with individual mysql queries for each letter.
so if there is not way to do this though WP how would i be able to do add a query for the other post tables and have it show.this is my current code for making a index page, and i am definite there is a better way of doing this, i am just not that good in PHP looping to figure it out.
<?php /* Template Name: Movie Index */ ?> <?php get_header(); ?> <div class="content"> <div id="primary-wrapper"> <div id="primary"> <div id="notices"></div> <a name="startcontent" id="startcontent"></a> <div id="current-content" class="hfeed"> <?php while (have_posts()): the_post(); ?> <div id="post-<?php the_ID(); ?>" class="<?php k2_post_class(); ?>"> <div class="page-head"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title='<?php printf( __('Permanent Link to "%s"','k2_domain'), wp_specialchars(strip_tags(the_title('', '', false)),1) ); ?>'><?php the_title(); ?></a></h2> <?php edit_post_link(__('Edit','k2_domain'), '<span class="entry-edit">','</span>'); ?> </div> <div class="entry-content"> <?php mysql_select_db($DB_NAME); $resultNUM = mysql_query("SELECT * FROM posts WHERE post_type='post' AND (post_title LIKE '1%' OR post_title LIKE '2%' OR post_title LIKE '3%' OR post_title LIKE '4%' OR post_title LIKE '5%' OR post_title LIKE '6%' OR post_title LIKE '7%' OR post_title LIKE '8%' OR post_title LIKE '9%') ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>#</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultNUM )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; echo "<tr><td>"; $year = get_post_meta($post->ID, 'year', true); echo $year; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultA = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'A%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>A</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultA )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultB = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'B%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>B</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultB )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultC = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'C%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>C</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultC )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultD = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'D%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>D</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultD )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultE = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'E%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>E</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultE )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultF = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'F%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>F</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultF )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultG = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'G%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>G</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultG )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultH = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'H%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>H</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultH )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultI = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'I%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>I</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultI )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultJ = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'J%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>J</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultJ )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultK = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'K%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>K</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultK )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultL = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'L%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>L</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultL )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultM = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'M%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>M</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultM )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultN = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'N%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>N</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultN )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultO = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'O%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>O</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultO )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultP = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'P%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>P</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultP )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultQ = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'Q%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>Q</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultQ )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultR = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'R%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>R</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultR )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultS = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'S%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>S</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultS )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultT = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'T%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>T</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultT )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultU = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'U%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>U</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultU )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultV = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'V%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>V</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultV )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultW = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'W%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>W</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultW )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultX = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'X%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>X</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultX )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultY = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'Y%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>Y</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultY )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> <?php mysql_select_db($DB_NAME); $resultZ = mysql_query("SELECT * FROM posts WHERE post_type='post' AND post_title LIKE 'Z%' ORDER BY post_title") or die(mysql_error()); echo "<table border='0'>"; echo "<tr> <th>Z</th></tr>"; // keeps getting the next row until there are no more to get while($row = mysql_fetch_array( $resultZ )) { // Print out the contents of each row into a table echo "<tr><td>"; echo "<a href='$row[guid]'target='_parent'>$row[post_title]</a>"; echo "</td><td>"; } echo "</table>"; ?> </div> </div> <!-- #post-ID --> <?php endwhile; ?> </div> <!-- #current-content --> <div id="dynamic-content"></div> </div> <!-- #primary --> </div> <!-- #primary-wrapper --> <?php get_sidebar(); ?> </div> <!-- .content --> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Putting Content in Sidebarthe easiest way to add custom content to the side bars is using the “text, html, php,” widget that comes with the WP install. using this widget you can add anything this way
Forum: Fixing WordPress
In reply to: static home pagewhat theme are you using ?
if you are using he default theme
than under the single.php file you can remove or comment out all the <?php?> stuff that you don;t need, such the code under the postmetadata classi advise simply finding a theme that already uses minimal post information.
or just making your own theme,u should try this guide very simple and easy to follow
http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/Forum: Fixing WordPress
In reply to: inserting imagescongrats with makes you the second person today whose wp just suddenly does what its suppose to