0
votes
3answers
43 views

Exclude posts from homepage having a specified tag

I am pretty new in WordPress development and I am trying to implement this custom theme that handle the so called featured posts As you can see in the posts area of the homepage I have the Articoli ...
0
votes
1answer
42 views

Custom Wordpress Theme: Publish Date and Display Date for posts right beside each other

What's currently happening is that for posts that have an 'update' time, the original publish and editor dates are rendering side by side (with no extra information in between, or even a space for ...
0
votes
0answers
12 views

Order posts by how many categories it is assigned to in total

I'm already doing some custom ordering based on various stored custom fields but this latest one has me stumped. I know I can get the count for how many categories a post is assigned to, but this only ...
0
votes
1answer
22 views

How to show part of the_content?

i wanna show 20 chars of the_content i tried this but doesn't work for me . <?php $content = ''; $content = the_content(); $count_content = strlen($content); if($count_content > 20 ) { ...
1
vote
2answers
90 views

Why won't my taxonomy query show up?

I'm attempting to display posts from a 'Uncategorized' category under a custom taxonomy called 'Reviews' but without much luck. I'm using get_template_part('loop','review') to call loop-review.php ...
0
votes
1answer
33 views

Admin - no Featured image choice in create new/page|post

I am developing a WP theme and I wanted to add a thumbnail/featured image to a new page/post but there is no such option/choice - like it used to be, I am using WP 3.8.1, I did try to turn off all the ...
-2
votes
1answer
75 views

Why I obtain this error message when I try to click on the author name of a post in my theme?

I am pretty new in WordPress theme development and I am experiencing a strange behavior in this custom theme that I am developing: http://onofri.org/WP_BootStrap/ As you can see in the blog are shown ...
0
votes
2answers
75 views

Get posts after calculating meta key

I have 2 meta fields for the posts, eg. meta_value and meta_count. Both are numbers. I want to divide meta_value by meta_count and based on the results I want to fetch the top 10 posts. So for ...
0
votes
2answers
28 views

Is there a way to create a meta box that can be added multiple times to a post dynamically?

This shouldn't be that difficult (I wouldn't think) ... I just want to have a section of my theme (directors) that has the name of the director / their bio in the title and post respectively (done). ...
0
votes
0answers
43 views

wordpress search result page post_type order

i want to customize the search. what i need is when user search for ex: if user search for tools in search result will return result in following manners. Pages page 1 page 2 Posts post ...
0
votes
2answers
45 views

Display the current post author and his url in the post header

I'm making some changes in my theme. I want that when they visit a Post the header should contain the post author and his URL. right now I'm using this: echo '<a ...
2
votes
1answer
47 views

Remove parent from custom post type

I've created a new custom post type with WordPress. However, the slug adds the post to a parent, like so: http://example.com/UNNCESSARY-PARENT/post-title However, I'd like it to create: ...
0
votes
0answers
23 views

custom processing for posts

Although I'm very well aware of PHP, but I'm kind of new to WordPress. So I created this WordPress site, but there's a bunch of posts that I want them to include some PHP and JavaScript and HTML ...
0
votes
1answer
26 views

Cant' Grab WordPress Built-in Posts Through Loop

Using WordPress 3.7.1 I am trying to display all Regular Post on my created page lest say TestPage. Here are the steps I took to do this: 1- Generate a Custom Page Template called:Test Page and ...
0
votes
0answers
62 views

How to add html div´s inside wordpost?

I need some help. The problem is, I decided to build a match stats which i want to insert in the proper wp posts.I build it with html and css.The issue is when i add the code of it, which contain div ...
0
votes
1answer
34 views

Change default post style to columns

I'm trying to format each post that the user uploads. I need the paragraphs to be floated to the left in the first column, and the images to be in a floated left in the second column. (I've tried ...
0
votes
2answers
177 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
0answers
459 views

The Loop won't display page or post content

I can't get the page content to appear in my custom wordpress theme. I have an extremely simple version of The Loop, which should just display the title and the content of the current page or posts. ...
0
votes
1answer
25 views

wordpress taxonomy results

I am using taxonomy.php to fetch some rows from database. On taxonomy page the function get_queried_object() shows that I have got the right results from database but wordpress loop if ( have_posts() ...
0
votes
1answer
50 views

How do I allow certain users to make a certain type of post?

Here's a brief summary of how my site is setup: I have a relatively simple Intranet site. Right now I am utilizing posts as a means to provide news to users. I am also using pages. I only want ...
1
vote
2answers
261 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 ...
0
votes
1answer
50 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 ...
3
votes
1answer
90 views

Change permalinks for posts but not for custom post types

Currently my permalink structure for posts is domain.com/post-title I'm using a static front page and a "blog" page for posts. I'd like to to change the permalink structure for posts, tags and ...
0
votes
1answer
53 views

Disable sticky option for specific categories

Is there a way to disable the sticky option on posts in specific categories?
0
votes
1answer
58 views

How to add a post class on every post. (on homepage)

I have this code in my home.php, the very first post class does not get the class while the others do. Same thing when i move this code to functions.php. I get php errors when i remove the hook around ...
0
votes
2answers
72 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 ...
2
votes
1answer
775 views

Multiple Content Block

I'm trying to create a custom post type and would like that post type to have two content blocks. So that in the loop I can ask for content-1 and content-2 separately. I can write the code just ...
0
votes
1answer
67 views

I can't find the relevant part of the loop in my theme file. How do I find the full content with “More…”

Brunelleschi is based on the Twenty-Ten theme, but has really grown since then. I like my theme, but I'm trying to modify the way a posts in page plugin works and I need to copy the relevant part of ...
0
votes
1answer
63 views

Get most recent posts by category that aren't first overall [duplicate]

Possible Duplicate: Duplicate posts I'm trying to create a home page, in which there is a top posts section that displays the three most recent posts (for all categories), and category ...
3
votes
1answer
2k views

how to display full post with pagination on home page

I am using the 'Hatch' theme. I'm familiar with HTML/CSS but not with WordPress, first time working with this. I have my homepage showing recent posts and that's good. However, I want to make a ...
2
votes
1answer
266 views

How do I change the gallery that is inserted in the post?

When I insert a gallery to a blog post using the [gallery] shortcode or simply the insert media button I get a default structured gallery in my blog through the_content(); However the gallery comes ...
0
votes
2answers
162 views

How to enqueue scripts depending on post formats?

So I'm trying to enqueue scripts used for some post formats like video and audio and I could find a way to check what post formats are going to be shown on the page. I tried print_r on some global ...
0
votes
1answer
2k views

WP_Query with custom post type ID

This code isn't echoing out anything, even though I'm 100% positive $mixtape_id is set to an integer which corresponds to one of the posts within the 'mixtapes' custom post type $query = new ...
0
votes
2answers
274 views

Posts Page Featured Image [closed]

I have created a theme that uses a featured image on every page. In settings, I have setup my "Posts Page" to be "news"...how do I get the featured image from "news" to display? The following will ...
0
votes
2answers
272 views

Wordpress Architecture as a CMS - Posts & Pages

How can I associate posts with pages? Trying to determine the best architecture / strategy to achieve the following... Using WordPress as a CMS 8 Pages each with sub pages Each page can also have ...
1
vote
2answers
211 views

Highlight static blog page link in header

I created a navigation bar like tab system for my header and I can get all but my news button to highlight on that page. The news is a static page for all of my blog/news post. Not sure if it's my ...
1
vote
1answer
424 views

Allow non-logged in users to see a future post after clicking on a list of future posts

I have been able to list out pages that are set for future in a custom template like this: ...
0
votes
1answer
644 views

How do I do a page break?

Is there a way to add a page break into length pages? Preferably automatically, but doesn't really matter. Ideally without a plugin.
0
votes
1answer
250 views

Am getting duplicate data from get_posts()

Am trying to display posts only from the "latest" category on my wordpress blog but am strangely getting the same post displayed twice. What am i doing wrong? /* * Theme file:index.php */ global ...
1
vote
1answer
257 views

Post & edit a post from front end along with upload, dropdown, and other inputs

I am following this tutorial to post from front end. I am able to post the title, content, category, tags, I would like to know is it possible to add more fields like in the image below. How to ...
3
votes
2answers
1k views

How to get Images included in Post

is possible to get images added to a post programmatically? I am working on custom template (my first) and I need to display Images added to a post in specific way.(first image as title image and the ...
-1
votes
2answers
266 views

Change from all posts to specific categories post on main page?

How do I change my index.php to display only the desired categories posts in the main page ? I tought that changing this would workout but instead it just print nothing: query_posts( ...
2
votes
3answers
1k views

Adding “latest from the blog” to the homepage

I have a big problem and no clue how to solve it :) I want to add a "module" to my homepage (static homepage, not blog posts) that will display the 2 latest blog posts in a very particular way and ...
1
vote
1answer
336 views

Set Expiration Date of a Post from the Frontend with wp_insert_post

i try to build a form that users posts from frontend, everything works fine but i need to know if it's possible, if i play with the 'post_date' => date('Y-m-d H:i:s')? if i add a hidden field that ...
2
votes
2answers
403 views

Relative Time On Posts

I am looking for a way that I could add some code to my wordpress template to display the time of a post in relative terms. So if, for example, I posted something 5 minutes ago it would say something ...
2
votes
3answers
86 views

How can I include a post in a theme?

Sometimes it might be necessary to include frequently-changing content in a theme, but themes take some time to modify, it may also be necessary to let a non-technical user maintain some content that ...