Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$5
Home page post category
I want to modify it so it will display from post category 'credits'.
The url is www.juliaandjulia.com
user: temp
password: wpquestions
This question has been answered.
kayode brown | 01/22/12 at 10:58pm
Edit
The experts have suggested, on average, a prize of $20 for this question.
(4) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
01/22/12
11:04pmArnav Joy says:can you explain what d you want ??
- 01/22/12 11:07pm
Arnav Joy says:you can use following:-
<?php
wp_reset_post();
query_posts('cat='.$catID);
if(have_posts()):
while(have_posts()):the_post();
the_title();
the_content();
endwhile;
endif;
wp_reset_post();
?> - 01/22/12 11:49pm
kayode brown says:What i am trying to do is have 3 posts from the specified category displayed with just the image. The idea is to showcase the top 3 clients.
- 01/22/12 11:49pm
kayode brown says:where would I dump that code?
- 01/22/12 11:53pm
Arnav Joy says:use this
<?php
wp_reset_post();
$catID = IDOFTHECATEGORY;
query_posts('cat='.$catID.'showposts=3');
if(have_posts()):
while(have_posts()):the_post();
the_title();
the_content();
endwhile;
endif;
wp_reset_post();
?>
replace IDOFTHECATEGORY with the id of the category credits
can you paste here the url of the site than i can tell you where you have to put the code. - 01/23/12 12:00am
kayode brown says:http://juliaandjuliabridal.com/
not sure if thats what I'm looking for.
in the theme settings, it has the options for the type of posts to display, I want to add a post category to be displayed. - 01/23/12 12:01am
Arnav Joy says:you want to display that posts in the home page?
By the way you site is down
www.juliaandjulia.com - 01/23/12 12:02am
kayode brown says:here are the dropdown options
- 01/23/12 12:05am
Arnav Joy says:you want to change the posts that are coming at the home page?
and please tell me which option to select means from where i can get those optins
tell me the link at the admin panel to access that page. - 01/23/12 12:14am
kayode brown says:Sorry i meant go to http://juliaandjuliabridal.com/wp-admin
login in
then click on shotzz options, then home page scroll down to home page sidebar and thats where i want have the option to select the post category - 01/23/12 12:31am
kayode brown says:would it be easier to add a post type called clients?
- 01/23/12 1:04am
kayode brown says:Anything?
- 01/23/12 1:19am
Arnav Joy says:please check your PM
- 01/22/12 11:07pm
-

Last edited:
01/22/12
11:09pmrizaljohn says:If you're talking about query post, then you can try this code:
$args = array( 'category_name' => 'Credits');- 01/22/12 11:51pm
kayode brown says:not sure if thats what I'm looking for.
in the theme settings, it has the options for the type of posts to display, I want to add a post category to be displayed. - 01/23/12 1:12am
rizaljohn says:What theme are you using? What I understand is you need an option in the admin that would allow you to select category to display. Is that correct?
- 01/23/12 1:16am
kayode brown says:I'm using the theme called Shotzz
- 01/23/12 1:16am
kayode brown says:That is correct. here are the screen shots
- 01/22/12 11:51pm
-

Last edited:
01/23/12
1:25amJulio Potier says:Hello
I found the file and the line that have to be changed to do this.
But (i'm logged in your site) i do not see any "credits" category, event for custom post types.
Can you tell me more about this cat ? is another custom taxo i did not see ?
Thank you
ps : price is low, i won't spend much time on this, sorry.- 01/23/12 1:29am
kayode brown says:thanks for the response, I havent created a custom post type called credits, i was asking if it would be easier to do it that way.
having said that I don't think this question would take too much time to resolve. - 01/23/12 1:31am
Julio Potier says:i did not talk about a custom post type name credits but a category named credits.
I want to modify it so it will display from post category 'credits'.
Where is this cat in your site ?? - 01/23/12 1:38am
kayode brown says:the custom post type is created.
I just need to add it to the dropdown and add posts to it - 01/23/12 1:46am
Julio Potier says:Ok In the file : /hades_framework/option_panel/options.php from your theme
find this :
$options[] = array(
"name" => "Enter Recent Posts Area Post Type",
"desc" => "you can select which posts to display here.",
"id" => $shortname."_home_rp_post",
"type" => "select",
"options" => array('post','portfolio','gallery','events'),
"std" => "post"
);
use the word "home_rp_post" to find it, about line 528.
Then add 'clients' to "options" value, kind of this :
$options[] = array(
"name" => "Enter Recent Posts Area Post Type",
"desc" => "you can select which posts to display here.",
"id" => $shortname."_home_rp_post",
"type" => "select",
"options" => array('post','portfolio','gallery','events','clients'),
"std" => "post"
);
See you
ps : i suggest $15, your question talked about a category, then a CPT.
- 01/23/12 1:29am
-

Last edited:
01/23/12
1:31amChristianto says:Hi,
Looking at your theme admin screenshot, I think you only need to add more custom post type and taxonomy for it and it will appear in your dropdown panel "enter recent posts area post type" to be choose.
this is to create other custom type name "clients" and new taxonomy "credits", add this to your functions.php on your theme folder.
function product_register() {
$args = array(
$labels = array(
'name' => __('Clients',themename),
'singular_name' => __('Client',themename),
'add_new' => __('Add New',themename),
'add_new_item' => __('Add New Client',themename),
'edit_item' => __('Edit Client',themename),
'new_item' => __('New Client',themename),
'view_item' => __('View Client',themename),
'search_items' => __('Search Client',themename),
'not_found' => __('No Clients found',themename),
'not_found_in_trash' => __('No Clients found in Trash',themename),
'parent_item_colon' => ''
),
'labels' => $labels,
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'menu_position' => 5,
'hierarchical' => false,
'rewrite' => array('slug' => 'clients'),
'has_archive' => true,
'supports' => array('title', 'editor', 'thumbnail')
);
register_post_type( 'clients' , $args );
}
add_action('init', 'product_register');
// CUSTOM CATEGORIES
register_taxonomy(
"credit",
array("clients"),
array(
"hierarchical" => true,
"label" => "credits",
"singular_label" => "credit",
"rewrite" => true
)
);- 01/23/12 1:55am
kayode brown says:I did this and it added the clients to admin panel however in the theme shotzz options/home page/ settings (towards the bottom it doesn't list clients) it still says
post
portfolio
gallery
events
- 01/23/12 1:55am
This question has expired.
Julio Potier had additional discourse to offer.
idt, kayode brown, Kannan C, Francisco Javier Carazo Gil voted on this question.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
