The single tag has no wiki summary.
0
votes
2answers
427 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
0answers
40 views
how to add news to my blog [closed]
I want to add news to my blog but i don't know how.The news type i want is like those news listed on the sample site
http://addisababaonline.com/category/addis-local-news/.
Please read the site and ...
0
votes
1answer
83 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
2answers
503 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
85 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
467 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
523 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 ...
-1
votes
1answer
39 views
Please help with display Post Navigation [closed]
I want to display this 2 navigation one to the right and one to the left.
Previous, the left.
Next, the right.
<div class="navigation">
<?php $mam_global_stay_in_cat = ...
0
votes
1answer
116 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
61 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
208 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
710 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
88 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
119 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
0answers
43 views
Give Access to Single Plug-in [closed]
is there a way to give a single user/profile access to only one plug-in function? Essentially I have a reservation booking plug-in that I want to give staff access to, but I don't want them having ...
0
votes
1answer
250 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
393 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
83 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
218 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
103 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
187 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
113 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
70 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
182 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
832 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
174 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
186 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
186 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.
...
1
vote
1answer
873 views
Pagination for custom query on single.php
I'm building a site and the basic structure on most pages is as follows:
<!-- content query -->
<!-- recent posts preview query (paginated) -->
<!-- related posts preview query ...
0
votes
1answer
542 views
Disable single post page
Is there a way to disable single post page, for example when some tries to go to single post page to show 404 page.
0
votes
1answer
180 views
Best way to modify content from index.php to single.php?
My blog has simple posts including a youtube videos. For example:
<iframe width="460" height="342" src="http://www.youtube.com/embed/PkxteedBq9g?rel=0" frameborder="0" ...
2
votes
2answers
563 views
How to display different single post template based on author?
My current singlepost.php makes use of the following if conditions and renders the appropriate template.
<?php
$post = $wp_query->post;
if ( in_category('4') || in_category('59') ) {
...
1
vote
1answer
277 views
Problem getting single_template filter to work - I want to serve a different single.php file for posts in a certain category
I am trying to customize the behavior of my blog to serve a specific single post template based on the category the post is assigned to.
I came across this filter in my parent theme which is what ...
0
votes
1answer
352 views
Function to allow single post template based on custom taxonomy?
I'm trying to use Justin Tadlocks function for category specific custom post templates, but have become stuck when trying with a custom taxonomy, as his examples only have normal categories.
Can this ...
0
votes
1answer
323 views
Get Child Custom Post Content on Single.php?
I have a custom post type, with children 2 rows deep...
Outfit 1
Inner
Child 1
Child 1
Child 1
Child 1
Outfit 2
Inner
Child 1
Child 1
Child 1
...
1
vote
3answers
388 views
Is it possible to use a single custom post as the site front page
I know I can set a static page as the homepage but is it possible to set a single custom post as the site front page?
I created a custom post type called "portfolio" where users can add all the work ...
0
votes
1answer
144 views
Conditional single.php statement not recognizing conditionals
I have tried every possible way of making this conditional work and it's skipping the in_category conditionals and going to the last option. This is my code in single.php:
$post = $wp_query->post;
...
0
votes
1answer
196 views
Need post_type_archive_title function but in 'single'
I'm trying to pull a custom post type name/title out for use in the breadcrumb of a single-[cpt].php template file.
In the archive-[cpt].php I can use post_type_archive_title() and it echo the name.
...
0
votes
1answer
314 views
Inserting custom fields into single.php
I am trying to get a custom field to show straight after the main body of text in single.php BUT before the Outbrain and Facebook Connect boxes. If I put the line to show the address above <?php ...
0
votes
2answers
121 views
plugin to hide selection of text from post from frontpage
is there any plugin that will add new quicktag, says:
[hidetext]some text to hide[/hidetext]
and any text inside those tag is hidden from frontpage/archive/etc. It only shown on single post page.
1
vote
2answers
673 views
Custom permalink structure only for default posts
Does anybody know how to modify the url struct only for the single post page?
When I go to a post page, the url should look like: example.com/xxx/my-post. All other urls (with the exception of the ...
0
votes
1answer
225 views
Dictionary-style definition list plugin
I've discovered the types plugin, and I'm loving how simple it makes it to add custom post types and their associated field sets. One need that I've come across that it doesn't fill, however, is ...
0
votes
1answer
167 views
Portfolio & Blog cohabitation : multiple single.php files?
I'm currently creating a website that's going to be powered by Wordpress and have both a portfolio and a blog.
How should I go about coding up the single.php?
I understand custom post types are the ...
0
votes
1answer
63 views
Problems with my conditionals in single.php by category
In my single.php file I would like to have a conditional that checks for the category of the post and display certain images and layout. Here is what I have: http://pastebin.com/dy6TE1yr
1
vote
1answer
120 views
custom post type parsed as attachment
I have few custom post type, on the single post of which i am getting 404 error page. I think i've tried almost every solutions posted on web but still it is not working for me and i've started to ...
0
votes
1answer
130 views
Post X of Y in single.php / sidebar.php
Is there a way of putting "Post X of Y" into my sidebar? I think I can only show it when it is a single blog post (something like checking if the content is_single) but I want to be able to see which ...
0
votes
2answers
294 views
Wordpress single.php different layouts projects / posts
i'm new in Wordpress and I'm currently building my personal website where my works will be published and have a blog too. For the portfolio layout I've looked up this tutorial:
...
0
votes
1answer
603 views
Possible to paginate on single.php?
I know this sounds illogical and maybe it is, but the client's asked for it so I'm looking into a solution if possible.
On a section of the site there's a link that leads to category-news.php, which ...
0
votes
1answer
370 views
What does the Global Variable $s represent?
What does the $GLOBALS['s'] variable contain? It looks like an empty array, but what would it normally hold?
I've encountered it in a tutorial: The WordPress Theme: Single Post, Post Attachment, ...
2
votes
3answers
758 views
How do I create a widget that only allows a single instance?
How do I create a widget that only allows a single instance of a widget to be added through the Wordpress interface?
The default behaviour of widgets allows multiple instances to be added.
I am ...