4
votes
2answers
96 views

How do I create a link that will always show the latest post?

If I want to create a link that will always show the latest post how can i do that? Lets say I have three post types and there are three links with posts names (like a nav list) to those post types. ...
0
votes
0answers
22 views

Get next post in category with AJAX?

I need a simple solution to load the next post in the category of the current post (in a custom single.php) with AJAX once the reader scrolls to the bottom of the page. I'm using a custom theme. ...
0
votes
1answer
45 views

Style Wordpress Custom Post Type Single Page

I'm registering a custom post type 'events'. The events can be listed using a shortcode, and when you click on an event you go to the single view of that event. Now, I want this single view page to be ...
0
votes
0answers
43 views

Can I query another data table on a multisite with the single.php template?

Here's a quote from a thread on this forum showing exactly what I'm trying to do: blog 1 gets = wp_post table blog 2 gets = wp_2_post table Small multisite setup, two very different sites, both ...
0
votes
1answer
76 views

Remove arrows from previous and next link

In the wordpress theme I am developing I inserted some code to display links to the previous and next posts which appears at the bottom of each post. The code looks like this.. <?php ...
0
votes
1answer
35 views

Post type no single page

I have created a post type and I am trying to create a single page for that post type, I am creating a php file called single-job.php and it is using the index.php as a template. Below is my function ...
0
votes
1answer
65 views

Add wp-link-pages to post

I am trying to add wp-link-pages function to my post where I have images split into many pages in that single post. I already have next and prev button whose functionality is written javascript. I ...
0
votes
0answers
246 views

If in_category not working for multiple single.php pages

I searched far and wide (on here & Google), reading about how to have multiple single.php pages for different categories of posts. The consensus was to do something like this: <?php /* ...
1
vote
2answers
460 views

How to add shortcode tags in single.php

In my theme has one shortcode tags to display tags of post and function to load content post. But in function doesn't include shortcode tag. Now I want to add it to function but i don't know how to do ...
0
votes
1answer
353 views

Get_the_author doesn't return author name

I insert author box below my post and use get_the_author to return author name but it doesn't working. It also doesn't working with Search post by author. Hope everyone give me solution, thank in ...
0
votes
1answer
47 views

Pagination and Related Posts

Is it possible to use pagination with the following related posts code, which is embed in single.php of my theme. <?php // for use in the loop, list 5 post titles related to first tag on ...
0
votes
0answers
77 views

Start image download by mouse click and insert counter [on hold]

i use this code: <a href="<?php if (has_post_thumbnail( $post->ID ) ): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ...
0
votes
1answer
566 views

custom single.php not working

Trying to solve this issue for the past hour and I can't figure out what's going on. Trying to create single-blog.php (I have a few posts which are under the category 'blog') but Wordpress ...
-1
votes
1answer
300 views

Insert Shortcode exactly at the end of the content

<?php echo do_shortcode("[sharethis]"); ?> <?php wp_related_posts()?> There are 2 short codes above 1) share this plugin short code 2) related posts short code now my ...
0
votes
1answer
2k views

Single.php - Get Current Parent Category

The Problem I'm trying to display the current parent category title with the post title right under it. The problem is, I can't seem to get the posts current category inside or outside of the loop. I ...
0
votes
1answer
115 views

wp-link-pages in header and footer of the post

I would like to work the wp_link_pages functions a bit. In header of the post starting with second page I would like to have a link to previous page, Continued from page 1 where 1 is the number ...
0
votes
1answer
706 views

Single.php Active Category Class

Currently by default (I believe) when you're on single.php, Wordpress doesn't add a "Active" class to the blog category you're viewing the single post in like it would for pages or if you're on the ...
0
votes
1answer
62 views

Single post page from static home not working

I'm struggling with displaying a single post page. I have the following code on the static front page: <?php $args = array( 'numberposts' => 5, 'order'=> 'ASC', 'orderby' ...
0
votes
1answer
93 views

Get current post's child page?

Is it possible to find out what page a post is contained in? Im in my single.php template and im listing child pages in a sidebar using wp_list_pages, I want the page (not category) that the post is ...
1
vote
2answers
442 views

Custom Post Templates

The Issue: I am looking for custom single post templates, to add or remove individual elements as a function of a normal single post. There are a lot of ways to create custom post templates for ...
1
vote
2answers
196 views

Restrict post navigation to current sub menu

This is what I'm using to output my post navigation: <?php if (is_single() ) { ?> <nav class="post-navigation"> <h1 class="visuallyhidden">Post Navigation</h1> ...
2
votes
2answers
1k views

Related Posts by Multiple Tags?

I was curious if was possible to display related posts by multiple tags. The site I am working on has about 5 tags per post. Most posts have 1 or 2 tags in common. The related posts I'd like to show ...
0
votes
4answers
346 views

How to show single post page as home page

I want to start a funny images website but I have come across a dilemma. I want the website to display 1 post ( not the thumbnail) but the full post on the home page. (the most recent post). Similar ...
1
vote
1answer
826 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 ...
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
2answers
47 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
258 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 ...
1
vote
1answer
136 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
2k 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
608 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
2answers
578 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 ...
3
votes
2answers
3k 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
3answers
161 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
551 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
145 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 ...
1
vote
1answer
229 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 ...
1
vote
1answer
262 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. ...
0
votes
1answer
1k 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.
2
votes
2answers
863 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') ) { ...
2
votes
2answers
2k 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

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
815 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
97 views

Display “Post 2 of 4” on single post page?

I have a custom post type called Projects. When viewing a single 'project' post I have next/prev buttons to navigate through them. I also want to display text saying "Project 2 of 4" or ideally ...
1
vote
2answers
1k views

Pagination on single post page?

I've found many pagination tutorials/plugins that work on pages displaying a list of posts such as index.php E.g. - ...
0
votes
2answers
196 views

Can I style single post that are in multiple catergories?

I have a regular wordpress site and I am trying to make a mobile version of the same site. For the blog section, I have put all of the posts in two categories: blog and mobile. The posts in "blog" ...
0
votes
1answer
31 views

Thumbnail Image to go in the post aswell

I have looked everywhere but I cant see any clear answers, a lot about getting a thumbnail image. But I am after having the thumbnail which was uploaded to the post to also be in the post just made. ...
1
vote
1answer
710 views

how to know if the post has pagination (<!--nextpage-->) or not

i need a solid solution for checking if a post has pagination or not, regardless of the number of current page in the pagination, and even if the post is in the first page of the pagination. the check ...
0
votes
1answer
125 views

“Home” Page now only displaying the single latest post

We did have a normal dynamic post home page.( Arjuna X 1.6.11 by SRS Solutions) After selecting for a static, we returned the settings to our original settings. However, now we only have the single ...
1
vote
1answer
1k views

Can't get the_content of the parent page from its single post?

This is a page that list posts witht he category Content (CDs): <div id="tagline"> <div class="container"> <?php // Run main loop (The Loop). ?> <?php if ( ...