The single post template. Used when a single post is queried.

learn more… | top users | synonyms

0
votes
1answer
125 views

Single template will not show sidebar/bottom-nav and footer

Im using the blankslate template theme and have a sidebar which i would like to use throughout the website. On my sidebar on the homepage i have a widget called latest posts with the latest post ...
1
vote
1answer
738 views

Using wp_list_categories like the the_category (showing just current categories of a post)

fromi'm using wp_list_categories to get an unordered list with headlines (on single.php inside the post-loop): <ul><?php wp_list_categories('title_li=0');?></ul> the thing is: i ...
1
vote
0answers
80 views

How to make the link to the category for a post go to corresponding page number in archive?

For instance, I am at http://url.com/single-post and in the post there is a link to the category that navigates to http://url.com/category/page/3/ which is the corresponding archive page that contains ...
0
votes
2answers
1k views

How do I create a single.php for a specific category?

I am trying to create a single.php file for a specific category on my site. Instead of loading the single.php file I want WP to return that category in a file called single-category-53.php (the actual ...
1
vote
1answer
367 views

How do I display a custom field from a custom taxonomy in single.php?

I know that the following mysql query produces the exact results I wish to echo within single.php: SELECT meta_value FROM `wp_taxonomymeta` WHERE `taxonomy_id` =565 AND `meta_key` LIKE 'baseurl' ...
0
votes
1answer
141 views

explain why is_single doesn't work

I am playing around with template hierarchy. I have uploaded stock 2012 theme and deleted page.php and single.php. I found that when I visit a blog post and click the the post reply link to leave a ...
0
votes
1answer
44 views

How to make a list of posts displaying them 5 by 5 with a “next posts” link?

I have been googling for the past 2 hours and haven't been able to figure this out, mainly because I am missing the right terminology, in other words, I don't know what I want in "wordpress words". ...
0
votes
1answer
328 views

only nextpagelink on wp_link_pages?

Someone has solution to display only NEXT PAGE link with wp_link_pages at Paged Single post? i try different solution but none of it helps. As i reach Last Page - wp_link_pages remove nextpagelink ...
2
votes
2answers
257 views

single page site with subpages

i want to make a single page site which has subpages with following structure about us team -member1 -member2 contact and i want the output to be like <div class="about-us"> team content ...
0
votes
2answers
45 views

1 post, 2 templates

I want to be able to render post in two different styles (2 templates). For example, let's say I have the post ID 133, I would like two URLS to access it and so it renders where different template ...
0
votes
1answer
169 views

Pagination issue with Single.php

I am having issues understanding the worlds most simplest concept when it comes to building a single.php file and using pagination. The code bellow shows a wordpress loop, its contents and then ...
0
votes
1answer
243 views

Single Post in Tab/Slider

I have managed to code tab system that fetches different categories and custom taxanomies on a home page and shows relative posts. Now, is it possible that when someone clicks on one of the posts in ...
0
votes
0answers
7 views

is_single query calling the wrong stylesheets? [duplicate]

Possible Duplicate: is_singular won’t call my functions? So I am trying to call different style sheets for each of my post types single page. Here is the code I am using in my header ...
0
votes
1answer
749 views

is_singular won't call my functions?

Hi i'm using this code to call for a different stylesheet for a single post type but the problem is, It won't call the stylesheet. It's in header.php, i also tried placing it in single.php <?php ...
1
vote
1answer
129 views

Add code just after Post content

I am in a bit of dilemma here so bare with me. I want to add something like this code just after the content in a post: <p>Please let me know what you think by <a href="#comment">leaving ...
0
votes
1answer
68 views

How do I get a single page navigation depending on the previous page?

I figured this would be a fairly comon thing. But I can't seem to find out how to do it. Or I'm just not using the correct search terms. I've got a website with a hompage that lists all my posts, and ...
0
votes
1answer
192 views

I would like single.php to act just like index.php

I'm creating a WordPress theme for my portfolio and I would like to my single.php file to act just like the index.php. I need the single.php to show the entire loop but if I access single post's page ...
0
votes
2answers
3k views

How to get category id in single.php wordpress?

I need to get category id in single.php. I tried this: $cat_ID = get_query_var('cat'); It didn't work. What should I use instead?
2
votes
3answers
3k views

How to check if the product is in a certain category on a single-product.php in Woocommerce?

How in the world can I check if a product is in a certain product category on the single-product.php? <?php if (is_product_category('audio')) { echo 'In audio'; ...
0
votes
1answer
1k views

Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?

Currently I am using <!--nextpage--> to split a post into multiple pages, but I would like to change from Pages: 1 2 3 4 to Next Page and Previous Page links similar to what you see on this ...
0
votes
1answer
120 views

How to direct user to actual 404 page when a check is false in single.php?

Can someone tell me how to direct a user to the main 404 file instead of having to print an error message saying "file not found" in single.php? For example: <?php if (!$myVar) { // go to ...
0
votes
1answer
120 views

Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php

I have a custom post type events and am displaying these events using archive-events.php and single-events.php from the template hierarchy. I have a custom query in archive-events.php $paged = ( ...
1
vote
1answer
660 views

Single post comment template not working

I cant get the comments template to show up in my single-events.php This is my code <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'events' ); ?> ...
0
votes
1answer
498 views

Attachment image single page

How do I make a single post page for a single attachment image below and link to it? <?php get_header(); ?> <div id="body"> <?php if (have_posts()) : ?> <div ...
0
votes
1answer
77 views

Single file upload

I would like to allow user to only upload one file at a time using the flash uploader interface. I found around here a link to a hack allowing to generate an error message when more than one file is ...
0
votes
2answers
2k views

Custom single.php files for different post formats

I have 3 custom post formats. One is for image, one for video, and, one for gallery besides the default post and they each have a view comments link on the bottom right corner at the end of the post. ...
0
votes
1answer
175 views

Links in the_content not linked

I have alot of old posts that are being pulled with the_content() context. In the_content() there is links in the text, however none of them are hyperlinked it just shows like ...
4
votes
3answers
1k views

Posts in multiple Categories different single.php

I am smashing my head against some code. Here is the situation: I have one post in 3 different categories, this post has to be visible in "category 1" with the single1.php, in "category 2" with ...
1
vote
0answers
104 views

Adding range to wp_link_pages();

I have some very long posts, some have more than 50 pages() and when using wp_link_pages it give me 50 internal post links, clearly this isn't usable. How can I add a range to the wp_link_pages ...
0
votes
3answers
796 views

Force redirect single.php to index

I want to make a force redirect for single.php to index so that it is never reachable by direct access (the site is built in a way that you retrieve all the content on the index page, still need to ...
1
vote
3answers
776 views

Custom post type not displaying content from single-{custom post type} page

I am trying to create a custom post type with taxonomy and a shortcode for my custom search in a plugin.When I activate my plugin I see my CPT and taxonomy on dashboard. But when I publish the post I ...
0
votes
2answers
507 views

Custom Single Post By Category

I'm trying to get up to speed with the terminology of the ins and outs of WordPress, so apologies. I'm setting up a full site utilizing WordPress and a custom template, basing it on TwentyTen ...
1
vote
0answers
94 views

Modified loop-single-forum.php to work inside of a sidebar Widget, not working on some site pages

So I took loop-single-forum.php, copied it and renamed it, fixed it so the site is calling the copy and then removed what I did not need from it to place it in a sidebar widget. It works beautifully ...
1
vote
2answers
368 views

Multiple Single Installs of Wordpress with a central user base

Im sorry that I am asking this but I have been searching for ages and for some reaseon the suggested custom user table dosn't work, it just gives me a username error. This is the code I am taking ...
3
votes
2answers
2k views

How to detect single.php (but not single-portfolio.php)?

When I'm using is_single(); in my <head> section to add some style to website navigation it executes correctly on blog posts but it also executes on single "portfolio" post type posts (so ...
0
votes
1answer
118 views

How to show a post single post in page template

Currently I've divided posts into 5 different categories, based on the categories I've created 5 page templates. all of the pages are listed into the home page navigation menu. in my home page I'm ...
0
votes
3answers
156 views

How to have different content in the loop and single

http://css-tricks.com/video-screencasts/ Try to look at this famous site which also powered by wordpress. The content in the loop is different from the single post. It use "dl" element in loop, but ...
0
votes
1answer
499 views

Nest Next and Previous in a href with class that has a background image

How do I nest Next and Previous link in a href attribute that has a class and background image in a single post page? I want to make it something like the below which is not working. <a ...
2
votes
1answer
1k views

HTML code in Custom field

I'm using a custom field to display images in a slider on each post, but when I update the post after having entered the HTML code in the custom field, the code disappears. I'm assuming that there is ...
0
votes
1answer
189 views

Displaying links to all posts of the same category on the post page

I want to display the links to all posts of the same category of the current post on that page. I wrote the following code in the single.php file. <?php $categories_of_this_post = ...
0
votes
2answers
439 views

Custom seperate Single.php

In my site I have a blog where each posts loads single.php like normal wordpress installation. I also have a "shop" custom page where each links also loads single.php but the permalink is different. ...
0
votes
2answers
223 views

How to format the first line of a post differently?

I'd like to have the first paragraph/sentence of my posts in their single.php page styled differently - say... bold. How do I go about doing that in the most efficient way?
2
votes
2answers
322 views

Make custom post type display as a page

I am trying to make my custom post type display on the front end as if it were a page. Depending on the theme, it won't have the date, author, etc... I've looked into creating a template such as ...
0
votes
1answer
142 views

Making a wordpress page print friendly

I'm trying to use an existing plugin in order to make my posts print friendly. I haven't got any support from the plugin developer. I think I have narrowed down the script to the function that places ...
0
votes
2answers
88 views

Adding comments to my custom theme

I would like to add comments to my single.php file. My custom theme is "hand built" and I haven't found the proper code needed to add this functionality. Anyone have the quick and dirty on how to add ...
0
votes
1answer
225 views

infinite loop on page with comments after changing comments.php and header.php

I am using version 3.3.1 of wordpress but I'm following a tutorial that used version 2.7. After changing my header.php and comments.php code, I'm getting an infinite loop when I view the single post ...
3
votes
1answer
1k views

single page wordpress

I like wordpress as a CMS and I think it's got a lot there with it's vast plugin library however the front end, dare I say it is a bit out of date. I don't like the system of old going page-to-page ...
1
vote
1answer
224 views

How can I make a post that belongs to a category or have specific tags, display different from the other single posts?

How can I make a single post display different from the other single posts when I add it to a specific category. example: I have a post that is in 3 categories: music, songs & video clips. I ...
0
votes
1answer
211 views

Wordpress, alternative single post template

For a project of mine I need to define an alternative template for single posts. To be more specific I need each post to be displayed as usual when the website is browsed but I need to create ...
1
vote
1answer
252 views

Display all posts that were published before full post on single.php

The way I would like my blog to work is a user clicks on a post that was published on 12th March 2012 (for example) they get taken to single.php where the content of that post is displayed as normal. ...