foochuck
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Conditional for parent categoryesmi,
Is there a dynamic solution? This list of sub categories is going to continue to grow and I’d like to set it up so it’s a dynamic reference to the parent (news) category.
-foo
Forum: Fixing WordPress
In reply to: Edit Gallery ShortcodeAwesome. Thank you very much for your help alchymyth!
Forum: Fixing WordPress
In reply to: Edit Gallery Shortcodealchymyth,
That code works, however I just realized I need to place that styles on the a tag of the image, like so:
<a href="http://localhost/global/wp-content/uploads/2011/06/brakingthecycle-01.jpg" title="brakingthecycle-01" class="fancy" rel="group1">How could I modify $link to do that?
Forum: Fixing WordPress
In reply to: Edit Gallery ShortcodeI should probably clarify that I’m simply trying to inject the html code into the img src for each thumbnail that gets generated in my galleries.
So it will look something like when I’m done:
<img width="93" height="93" src="http://localhost/global/wp-content/uploads/2011/06/01-93x93.jpg" class="attachment-thumbnail fancy" rel="group1" alt="img-01" title="img-01">Thanks!
Forum: Fixing WordPress
In reply to: Edit Gallery Shortcodealchymyth,
Thanks, that helps, but I’m not sure where I add my html code
class="fancy" rel="group1"– is it somewhere within the $link variable?Forum: Fixing WordPress
In reply to: Prevent "$after" character from appearing after last menu item*bump*
Forum: Fixing WordPress
In reply to: Localhost Install to a Web Server ErrorPS – I did update the database wp_options for my site URL and the site is still not working and the port 8088 is showing up on the end of my URL.
Any suggestions?
Forum: Fixing WordPress
In reply to: Widget to Display a Full Post Onlybump
Any way to add a full WordPress post to a widget?
Forum: Fixing WordPress
In reply to: Previous Parent Page?Yes…there are two main page categories on my site. Each one of the two categories determines whether menu 1 or menu 2 will be shown on the page.
Forum: Fixing WordPress
In reply to: Including the Same Content on Multiple PagesAhhhhhh. Works like a charm. Thanks so very much vtxyzzy!
-foo
Forum: Fixing WordPress
In reply to: Including the Same Content on Multiple PagesOkay, I’ve updated my code on my page template:
<?php query_posts( array( 'post_type' => array('builders') ) ); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-## -->The page using this template is showing no content, although I do have a post setup at:
http://www.mysite.com/builders/associate-builders
And that post displays content. Something else I could be doing wrong? Perhaps I need a loop on this page?
Forum: Fixing WordPress
In reply to: Including the Same Content on Multiple PagesOkay here’s what I’ve tried.
I created a custom post type called “builders”.
Under builders, I created a post called “associate builders”.
Now for the page template I created, I’m trying to query it like so:
<?php query_posts( array( 'post_type' => array('builders', 'associate builders') ) ); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </div><!-- #post-## -->This query pulls no data. So first off, I think I’m not doing the query correctly. Any suggestions on this?
Forum: Fixing WordPress
In reply to: Including the Same Content on Multiple PagesOption 1. Can I put a regular query right into the content of a page?
Option 2. Would I need to create a page template and insert the query in the template since it’s using PHP?
From my experience, I don’t think you can use PHP in the content of a page or post, so I’m guessing I have to go with option #2, since I want the same content to appear on multiple pages. I would apply the page template to those pages.
Forum: Fixing WordPress
In reply to: Including the Same Content on Multiple PagesFor the query, do I need to make a page template or can I run that query in the content area of my pages using PHP?
Forum: Fixing WordPress
In reply to: Including the Same Content on Multiple Pages@vtxyzzy – How can I create a custom post type?
I’m also not sure what query I can use to include a custom post. Do you know of any examples I could use for this?