0
votes
2answers
28 views

Including text at the end of every post

I would like to include some text at the end of every post. Like how some people write "Like my posts? Follow me on twitter!" or something like that. There are some buttons for users to tweet or share ...
0
votes
2answers
37 views

How to make a template for a specific post of a custom post type?

For the Page post type: I can create a logout page in the CMS and create a page-logout.php for its template. I created an Account post type but I can't use account-user-registration.php for a User ...
0
votes
1answer
37 views

Tell WP to use a specific template file in posts

I've searched everywhere and tried a couple plugins with no success. I'm using WP 3.9.1. I have to create different ways to show my posts. If they are "standard" they use the single-post.php. That's ...
-1
votes
1answer
17 views

Tag page that displays specific posts

How would I go about coding a generic tag.php page that displays all the posts with a specific tag? For example, if I navigate to example.com/tag/your-tag, it should display all posts with the tag ...
0
votes
0answers
30 views

Adding The Post Template Dropdown to WP-Admin

I'm developing a WP theme from the ground up for the first time. Having build WP sites before, I know there to be an option in Posts that will allow for the selection of a specific template. I have ...
0
votes
0answers
33 views

Posts page template: How can I edit the markup for this?

I have in settings->reading changed the front page to display a static page. One for home, one for news with a custom template for each. Home works fine, however News will not change no matter what I ...
0
votes
0answers
93 views

How to show blog post details on a different page?

I have currently made a template to list my blog posts <?php /*template name: Figures */ get_header(); ?> <?php nectar_page_header($post->ID); ?> <div class="container-wrap"> ...
0
votes
1answer
46 views

List all native posts in template page?

I've created a page template and I want to do a really simple task: List all (native) posts I have this code inside the template-file: $args = array( 'posts_per_page' => -1, ...
0
votes
0answers
110 views

Only show top level posts of specific category

I've been trying to create a loop that will only show the top level posts no children/sub category posts. Basically what my categories look like are -- -All --one --- A --- B -- ...
0
votes
1answer
56 views

Search page for custom post type

I am new to wordpress and a beginner coder, and i was searching around the net, found solutions but still does not work. I have custom post type named dlm_download, and my custom search template not ...
0
votes
0answers
23 views

How to change posts page to use own template [duplicate]

Scoured the web looking for this solution. Come to realise that the posts page, even though you change the settings under Reading > Settings and then tell your posts page to use a different template, ...
0
votes
1answer
156 views

Sidebar on single.php not showing up

So, my sidebar is working just fine on my blog page: beta.cleantelligent.com/blog However, when you click a single post, I'd like that same sidebar to show up. I am assuming this would be under ...
0
votes
0answers
54 views

Read More Button does not display

I have read through every existing post on this topic and they are all way too technical for me and I think my problem may be different anyway. So, like many others, I need to truncate my blog posts ...
0
votes
0answers
65 views

How to arrange different post categories in template

I'm playing with WordPress for sometime. In my website, there will be 3 possible categories for posts, like: 'offer', 'news' and 'about' (each category with individual content). My attempt is to ...
0
votes
1answer
68 views

How can I locate the single buddypress forum post template? [closed]

I have been trying for ages to locate the template that shows a single forum post template and I cannot find it. Does anyone know where this is located? Thanks
0
votes
1answer
40 views

How to Featured content with images in home page?

Today i saw a WordPress blog which is using Featured Articles in its home page. can any one tell me how to add that code manually to my blog only in home page. Here is the screen shot and blog url ...
0
votes
1answer
483 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
194 views

How do I create a template page to show 3 blog posts?

I have a blog theme that I created which shows one post per page. To do this I simply set up single.php the way I wanted, and I have some code that links the 'blog' item in the nav to the latest blog ...
0
votes
2answers
204 views

How to make different custom post layouts?

I am new to wordpress, and have encountered some difficulty in making my own custom layouts. I'm using _S framework (underscore.me) as well as Custom Post Templates plugin. I'm using custom fields ...
0
votes
2answers
83 views

Forcing oembeds to top of post

What's the best way to force oembed (or shortcodes too) to the top of a post? I'd like to feature youtube embeds before the actual article content, regardless of where the link was inserted. Any ...
0
votes
3answers
76 views

Post Templates and Post ID's

I am trying to make use of the Single template for single posts ( I have a custom one). But for some reason my posts get overridden instead of displaying new data. This is the setup I have right now ...
1
vote
1answer
91 views

custom post template file not shown, instead all the time 404.php

i'm completely confused, want to use my own template file for a custom post type and of course i read all about this here or in the Codex ...
1
vote
1answer
561 views

How can I pass the ID of a post to a page template by clicking a url?

I have a post gallery and I'm displaying the thumbnails in example.com/gallery. Now this thumbnails are created via posts and when you click on on eof the thumbnails, it will direct you to single.php ...
0
votes
2answers
58 views

How can I change the look of a post as is displayed

When an article is posted it comes out like this: Where the title is on top, then the picture, then the image. But what I would like to do is how technobuffalo.com has it: How is this done? is a ...
1
vote
2answers
431 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 ...
0
votes
1answer
54 views

Which hooks are essential for post templates?

Im in the process of building a very custom theme and Im beginning to work on the post templates, but I dont know which hooks are essential for them. So like, I've seen (but cant remember where)some ...
0
votes
1answer
65 views

How do I disable the “by author” hyperlink on posts?

I'm trying to disable the "author" hyperlink when making a post, but having no success. How can I do it?
0
votes
1answer
81 views

Display the first post's comments of category in comments.php template

I want the display the comments from first post of the category only. Example; Category - Post 1 (2 comments) - Post 2 (1 comments) - Post 3 (5 comments) If I am reading the Post 2 or Post 3, I ...
0
votes
2answers
269 views

Trying to query all posts in category 4

I have the following template page. I am attempting to output all of the articles from the category 4. However I am only getting some of the posts, about 20% of them. Not sure what would be causing ...
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
2answers
77 views

How to create a template for Pages?

In Wordpress, when creating a page, it shows some options for Template under Attributes, such as: Default, Links, One column no sidebar, etc. Is there a way to add more custom templates to show up ...
0
votes
2answers
635 views

How do I stop the loop from repeating in my category template?

For some reason, when viewing a category, the posts are repeated - basically the whole loop repeats as many times as there are posts for that category. E.G.: If category_a has 3 posts, the page will ...
0
votes
2answers
2k views

previous_post_link() and next_post_link() with a custom post type?

I'm on single-work.php for a custom post type called work, inside the loop. Trying to make two links to the previous and next post. Using this code: <?php previous_post_link(); ?> and ...
3
votes
3answers
1k views

Setting a custom sub-path for blog without using pages?

Warning: fairly pedantic request ahead. I have a design that makes use of posts (I.e., the blog) and a custom post type called "howto". The site front page ("/") has a template that displays the ...
1
vote
4answers
1k views

How only display all post related to category

I'm trying to make a custom template for my category pages that only pulls in post under a specific category. At the moment, I am only able to pull in all post and not category specific... My code so ...
0
votes
2answers
1k views

loop not displaying posts on custom template page

I have a site using a static homepage, and a posts page called Press(press.php). The template is being pulled up correctly, however no posts are shown. Any ideas why? Thanks in advance. Live site. ...
0
votes
2answers
165 views

posts not showing on index.php

Live site. I've got a custom theme, wherein the homepage(front-page.php) is static and the "posts" page is Press(index.php). Everything with the theme works great, with the exception of the posts not ...
0
votes
1answer
165 views

Output Buffer Issue with Single Post View

I created the following function that I am using to load single post views: // Post function basey_single_post() { global $post; ob_start(); echo apply_filters('basey_page_title_news', ...
0
votes
1answer
42 views

how to style an individual page in a category [duplicate]

Possible Duplicate: How to show a post single post in page template im trying to understand how to target a template for an individual post. if i use the following hierarchy for my site, ...
0
votes
1answer
357 views

Category Template: Need to display different content on first page of archives

So my issue is that I need to create two versions of a category.php template. Now, I know very well that if I want to display posts from just one category, I duplicate category.php and call it ...
0
votes
2answers
949 views

add_rewrite_rule and template redirect not working

I have the following pairs: add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top'); if(is_page('ask')){ $tname = 'add-question.php'; ...
2
votes
1answer
688 views

Post/Page Preview Template

Is there a way to have a custom template php file that is only used for previews instead of it using the single.php file? This way the user knows they are in preview mode?
2
votes
2answers
718 views

posts page - different lengths of excerpt

is it possible to get wordpress on the posts page to do the following example. the first three posts need to have a large image spanning the width of the title box and a longer excerpt. the rest of ...
0
votes
1answer
1k views

Use template of parent category for single post sub-categories

I have single post templates in a folder in my child theme marked "single". I need the sub categories to use the same template as their parent. I've read a dozen tutorials all of which were more than ...
0
votes
1answer
102 views

How to display a certain template element only for posts published within certain time range?

I recently migrated a blog from sub.domain.com to blogs.domain.com/sub/. Because I'm using Facebook comments, all the posts published before April 25 need to reference sub.domain.com/blog-entry-title ...
0
votes
1answer
272 views

Why won't pagination work?

I am using a page template with code to display all blog posts: <?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="main"> <?php // ACF Page number variable ...
2
votes
2answers
845 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') ) { ...
0
votes
2answers
878 views

Single post as homepage?

I'm wanting to set a single post as my homepage. I have a photographer's site. There are a few galleries (weddings, portraits etc). Each gallery is a wordpress post with attached images. The post ...
1
vote
1answer
657 views

Change post_date to post_modified date on post template?

I'm looking to change the post created date to a modified date on my post template (single.php). Moreso, I'm looking to control when I update that date based on whether I make significant changes to ...
0
votes
1answer
1k views

Prevent 404 of Author pages without posts

How do I prevent author archives without posts from 404ing?