polymaze
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Template SwitchingOk, thank you very much for helping me with this!
Forum: Fixing WordPress
In reply to: Template SwitchingYup, that seems to be the problem. Thanks for that!
What is the issue with using a taxonomy and page name that are the same if they are designed to be connected?
Forum: Fixing WordPress
In reply to: Template SwitchingAny ideas on what’s going on? Thanks
Forum: Fixing WordPress
In reply to: Template SwitchingForum: Fixing WordPress
In reply to: Template SwitchingOK, deactivating the plugins had no effect, however, when I changed the theme to twenty 11 the services page showed “home” in the h1 tags. I’m guessing that means it’s still running the index.php or archives.php loop.
Forum: Fixing WordPress
In reply to: Template SwitchingKeesiemeijer,
Yes, I set up the template like that. I have three other templates all working fine, but for some reason the “services” page will not accept a custom template. I’ve tried switching it to the other templates that I have working, just to see if it would register that there was a template applied to it, but it still showed the archives.php loop.
Thank you for the replyForum: Fixing WordPress
In reply to: Please Help – display posts from the specific custom post typeForum: Fixing WordPress
In reply to: Custom Post Type ConversionAnyone have a suggestion for this? Thanks
Forum: Themes and Templates
In reply to: seperating loop posts by taxonamyanyone?
Forum: Fixing WordPress
In reply to: Show post on alternate template depending on contextHello,
I’m looking at doing the same thing and am somewhat confused about how you ended up getting this to work.
What argument did you pass to the permalink to target the different templates? And did you put that in the archives.php or in the loop? I still don’t have my head wrapped around php yet, so sorry for not understanding.
Thank you
Forum: Fixing WordPress
In reply to: Post content ( the_content() ) in lightbox or modal window?Hello,
I’m looking at doing the same thing and am somewhat confused about how you ended up getting this to work.
From (http://wordpress.org/support/topic/417147), what argument did you pass to the permalink to target the different templates? And did you put that in the archives.php or in the loop? I still don’t have my head wrapped around php yet, so sorry for not understanding.
Thank you
Forum: Fixing WordPress
In reply to: thumbnail linkNevermind, I found the function needed to achieve this from http://webdeveloperplus.com/
function catch_that_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $first_img = "/images/default.jpg"; } return $first_img; }Forum: Fixing WordPress
In reply to: Gallery Link From Thumbnail To Fullsize ImageAlright, so after spending a few hours digging through the code, and not understanding a lot of it, I’m at almost the same point that I started.
Does anyone even know if there is a way to link a thumbnail to a post attachment image within the loop? I’m finding it hard to believe that I would be the first to think this up.
Forum: Fixing WordPress
In reply to: Gallery Link From Thumbnail To Fullsize ImageYes, I’ve tried it, and it doesn’t work the way I was hoping. Is there a way to link directly to the fullsize image in a post loop?
Thank you for your suggestion. I’m actually looking through the plugin to see if there is code I can use.
Forum: Fixing WordPress
In reply to: category galleryOk,
So, after some more digging, I came across a function that I think might work if someone could help me expand on it a little.
The function:
function portfolio(){ // $args = array('orderby' => 'name','order' => 'ASC','exclude' => '1,5','hide_empty' => '0'); $categories = get_categories($args); foreach($categories as $category) { echo '<li><a href="' . get_category_link( $category->term_id ) . '" rel="' . strtolower(str_replace(' ', '-', $category->name)) . '" ' . '>' . $category->name.'</a></li> '; } }which outputs:
<li><a href="http://localhost.localdomain/wp/category/portfolio/commissioned/" rel="commissioned" >commissioned</a></li> <li><a href="http://localhost.localdomain/wp/category/portfolio/personal/" rel="personal" >personal</a></li>and when one of those links are clicked, the result displays like this:
<p>gallerypost1</p> <p>gallerypost2</p>What I need to do is add some html elements to the last list providing links to single post pages rather than displaying the post content from a category in list form. So it would rather output to this:
<li><a href="http://localhost.localdomain/wp/category/portfolio/commissioned/gallerypost1" rel="gallerypost1" >gallerypost1</a></li> <li><a href="http://localhost.localdomain/wp/category/portfolio/personal/gallerypost2" rel="gallerypost2" >gallerypost2</a></li>Anyone understand how to set this up?
Thanks again for helping me get this far.