spyderfcs
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: importing external data into custom fieldsI’m trying to do this and having issues. I added two fields: One for a path to an image and the other for tags.
I put these in the mt.php file in the import folder:
case 'CUSTOM':
$custom_data = $value;
break;
case 'TAGS':
$tags = $value;
break;if (!$wpdb->get_row("SELECT * FROM $wpdb->postmeta WHERE post_id = $post_id AND meta_value = $custom_data")) {
$wpdb->query("INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) VALUES ($post_id, 'image', $custom_data) ");
}
if (!$wpdb->get_row("SELECT * FROM $wpdb->postmeta WHERE post_id = $post_id AND meta_value = $tags")) {
$wpdb->query("INSERT INTO $wpdb->postmeta (post_id, meta_key, meta_value) VALUES ($post_id, 'photo', $tags) ");
}The importing goes fine but neither of the things I’ve added show up. Also…it’s not importing the comments…
Forum: Fixing WordPress
In reply to: An alternattive way to get links to the next and previous post?That seems like it might do what I want it to do. Thanks…but I keep getting this error when trying to activate the plugin:
Warning: Cannot modify header information - headers already sent by (output started at /home/.unger/spyderfcs/f1period8.com/wordpress/wp-content/plugins/post_nav_url.php:60) in /home/.unger/spyderfcs/f1period8.com/wordpress/wp-admin/plugins.php on line 16
Forum: Fixing WordPress
In reply to: Archives: Display Months per Year in Seperate ListsScratch that…from the usability standpoint, that would make zero sense.
Forum: Fixing WordPress
In reply to: Archives: Display Months per Year in Seperate ListsThanks Kafkaequi! I figured out how to show just the year I wanted but thanks for the confirmation that I was doing it right. The only other thing that would be helpful is how to display all the months of the year (regardless if any posts were made that month). Is that even possible?
Forum: Fixing WordPress
In reply to: Photoblog Navigationno ideas?
Forum: Fixing WordPress
In reply to: Archives: Display Months per Year in Seperate ListsThanks Kafkaesqui. Two questions:
1. What would I change if I only wanted to display the year and months for 2005?
2. I can get this to work on the archive.php page but on the archives.php page it will only show the years and not the months…any ideas?
Forum: Fixing WordPress
In reply to: Archives: Display Months per Year in Seperate Listsmy only issue with this is that is uses tables. I mean why not just you an ordered list. Maybe I can modify it….
Forum: Fixing WordPress
In reply to: Calling comments_template() in the index.phpI think I found a solution!
In case anyone is looking for info on this subject…
Look here: https://numist.net/blog/comments-on-index/
Forum: Fixing WordPress
In reply to: Calling comments_template() in the index.phpYou know…I just realized that it’s not possible to display the comments for a post on the index.php page since it doesn’t contain the comments for that particular post but rather just shows one of the posts.
Is there a way to have it look like it’s on the index.php page (so the address will still show… https://www.mywebsite.com ) but it will actually be loading something like (https://www.mywebsite.com/archives/2006/02/12/post-title/)?
Forum: Fixing WordPress
In reply to: Calling comments_template() in the index.phpThanks for the reply but the above code is for a different site I’m building, not my blog. It’s a photo blog so on the index.php page I have a photo and then also want to display the comments section for the photograph.
So I don’t think I need the comments_popup_link tag since I’m not trying to link to another page but instead just want the comments section to show up on the front page.
Know what I mean?
Forum: Fixing WordPress
In reply to: Blog and Photoblog in Onebump..?
Forum: Themes and Templates
In reply to: Just move sidebar to the left?Within the ‘Main Index Template,’ move this
<?php get_sidebar(); ?>
above the area that displays the posts. It should be at the bottom, which means it renders last and thus to the right.Forum: Plugins
In reply to: RSS Blogroll Updatevery cool although I wish the WordPress built in function would just work for me. Anyway…any idea on why it is putting >> and << things at the beginning and the end of my first three links…
Forum: Fixing WordPress
In reply to: Creating separate archives page?sorry for the double post but I keep getting “fatal error: call to undefined function” when I try to run the archives.php. Now I know my code is correct and I know my file paths are right. Can you not have PHP code and WordPress functions on pages I create like archives.php?
Forum: Fixing WordPress
In reply to: Creating separate archives page?so does the archives.php go in the wordpress directory with the index.php? And what if I am using a theme in 1.5, does it go in that themes folder?