ameriblog
Forum Replies Created
-
Forum: Themes and Templates
In reply to: help customizing pages.anything?
Forum: Themes and Templates
In reply to: Special divider after every third postAny help?
Forum: Fixing WordPress
In reply to: Trying to use ID in Loop…I’m running a separate/custom mySQL query in the loop, I want it to run for every post in the loop. I want it to get the ID of the post in the loop and use it in the query.
Forum: Fixing WordPress
In reply to: Trying to use ID in Loop…I’m just trying to use the ID of the post in code, instead of it displaying on the page.
If I try:
WHERE ID = the_ID();
It displays the ID on the page and doesn’t work the query right.
Forum: Fixing WordPress
In reply to: Trying to use ID in Loop…index.php.
What it is trying to do is get the content in the query where ID = which post is shown.
So, I have the most recent 10 entries on my index.php, what I’m trying to do is get post_url and post_source from the TABLE where each ID = the post.
Forum: Fixing WordPress
In reply to: Add fields to postAny help, please?
Forum: Fixing WordPress
In reply to: Add fields to postNow I’m trying to get it to output the two fields I added.
Right now, everything is displaying properly, what I tried to do was run a query within the WP loop that called from the wp_posts table where ID = $the_id();, but it didn’t work.
This is my query:
$the_post_id = the_ID(); $info_rs = $conn->Execute ( "SELECT post_url, ID, post_source FROM wp_posts WHERE ID = '$the_post_id'" ) or die ( $conn->ErrorMsg() );
Unfortunately it is displaying the ID instead of using it in the code…
I actually tried this as well:
function function_name() { global $post; $thePostID = $post->ID; }
It gives me an error that “Cannot redeclare function_name()”
Forum: Fixing WordPress
In reply to: Add fields to postIt is actually working
Forum: Fixing WordPress
In reply to: Add fields to poster, double post.
Forum: Fixing WordPress
In reply to: Add fields to postI do have permission. I’m using SimplePie, with some customizations.
Where, which file, do I assign the output variable? I’d like to do it exactly where WordPress is already doing so for the blog title, content, etc.
Forum: Fixing WordPress
In reply to: Add fields to postI want to include two new fields in the TABLE, which I can add manually in phpMyAdmin.
I have code I wrote that gets RSS feeds and inserts them into the database, the two fields I’m trying to add are from the RSS feed (RSS source and the url to the story). I can take my RSS code and have it insert into the database, as a WordPress post.
Then I can customize the layout of my blog with themes and have it display how I want it to display.
For example, in my index.php WP page of the theme, I’d like to just do <?php the_source(); ?>
Hopefully that clears things up…
Forum: Fixing WordPress
In reply to: Customizing sidebar widgets…ew, somehow my post got messed up and i tried to edit to no avail.
i figured out the recent posts, but can’t figure out how to customize how the blogroll/links looks like…