Wordpress: Don't show the first inserted post - php

So, I have some subcategories, and in each category I insert some posts, when I show the posts for each subcategory I don't want to show the FIRST inserted post in that subcategory, only the posts that are not the FIRST ONE.How can I do this with query_posts..or how?
Best Regards
//SOLVED I will use a custom field

See offset parameter in function reference
query_posts('posts_per_page=5&offset=1');

Related

how to create post tags from the category name

looking to add the category name to the posts tag list. Anyone have a snippet of code that can accomplish this so I don't need to manually change 5000 posts. Thanks

Wordpress ACF - Get taxonomy values

I add new custom field to load my Books genres (taxonomy) in to my "writer" page (category).
look at my settings:
http://awesomescreenshot.com/0df4qucud7
I need to show the checked genres on my writer page.
Of coure if theres no checked genres the code shows nothing (IF tag).
How can I get the values?
ACF Plugin: https://wordpress.org/plugins/advanced-custom-fields/
You are getting the term ID's of the selected genres.
With the ID you can get a field like so get_field('field_name', 'genre-cat');
In this situation the genre-cat can be replaced for the output of your field with the term IDs (you would have to do this for each term selected, so use the foreach statement).
See full documentation from ACF on how to get values from a taxonomy term: http://www.advancedcustomfields.com/resources/get-values-from-a-taxonomy-term/

Adding a category history to a post in Wordpress

I have a problem I can't deal with.
Let's assume that we have following categories:
Main
Some category
Some other category
And one more
How to show then something like Main > Some category in a Wordpress single post. To make a hierarchy. I want post to be under "Some category", not under "Main", but to list main. Is that possible to achieve that?
Sure it is. By not by use of typical get_posts() with parent category idYou can use get_terms($taxonomies) to have an array post id's by chosen criteria(for ex. parent=0) , then use wp_query() to display them (or list).
Look at get_terms in wp codex

Get Category in Wordpress Post

OK I have a standard post here:
http://www.ticketyoda.co.uk/concerts/rihanna-tickets/rihanna-tickets-manchester-2013-06-12-united-kingdom/970
I am trying to make each post unique and contain the category information for both the city (Manchester) and the Artist (Rihanna).
At the moment the box underneath the venue contains the information taken from the category (see breadcrumb). So I have 1 out of 2. What I need now is for an extra box below to show the category information for the Artist.
I use :
<?php $category = get_the_category(); echo $category[0]->category_description; ?>
to get the first category.
You can see the rihanna description under the posts here:
http://www.ticketyoda.co.uk/concerts/rihanna-tickets/
Any help appreciated.
I think the reason you are only getting one category is due to your echo statement. It only calls for 1 value $category[0], in order to get a second category try [1]. Out of curiosity is the second category a child of the first?

wordpressL How to array the child categories without any html tags?

I am using a category called 'blogs'. Under that category I have many authors. Each author gets a category for himself.
In the 'blogs' template I want to display nicely a for each category and the ecxerpt from the latest post.
Unfortunately, when I am trying to use wp_list_categories to query the child of that 'blogs' cat, I get a html code of list. I can't use it.
Any Ideas ? Thanks
get_categories()
You need to specify child_of and retrieve the id of 'blogs'

Categories