display only the title of the post into a certain category
resolved, link : codex.wordpress.org/Category_Templates
resolved, link : codex.wordpress.org/Category_Templates
You’re talking about the format setting which was introduced in WP 3.1 for the posts post type? No, I don’t think this is possible. To remove the title-, editor- or any other metabox, you have to remove the support for this feature from the current post type. (e.g. remove the feature from the supports parameter … Read more
well.. it is not exactly the case, but in a way, it is . every page has actually “2” names , one is the name you give and one is the ID, which is the number. If you will give a “name” which is a “number” – it might override another entity (Can be a … Read more
as this is a default field, i don’t think it is possible to achieve what you want with the help function hooks, however you can do this by editing edit-form-advanced.php file inside wp-admin folder, the code you may want to edit is located in line # 291, this is the input type for title field … Read more
Add a check wherever you’re displaying the title: //Anything greater than 0 means the category has parents, 0 means no parent, child category if($category->category_parent > 0){ echo $category[0]->cat_name; } This should help.
Here is an idea: Use get_posts() to get posts you want. On the right hand side show titles via foreach. use setup_postdata() on right hand side loop to get post content. You can use jquery tabs to show and hide post content or just use jquery. Don’t do get_posts() twice or use ajax because you … Read more
Use WP_Query class to do it: $the_query = new WP_Query( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘page’, ‘posts_per_page’ => 1, ) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <h2 class=”subpagetitle”> <a href=”https://wordpress.stackexchange.com/questions/55118/<?php the_permalink(); ?>” rel=”bookmark” title=”<?php the_title(); ?>”> <?php the_title(); ?> </a> </h2> <?php endwhile; // Reset Post Data wp_reset_postdata();
If you can pull the XML feed before the Title gets set then you could easily use information from the XML feed (and thus the H1) in the title. I guess you need to ask yourself these questions: Can I pull the XML before the title is processed? When creating the H1 are there any … Read more
I’ve never used the theme, but the code seems to show that there is an option to hide the title. Line 23 of https://github.com/simplethemes/skeleton_wp/blob/master/skeleton/loop-page.php shows post meta for hidetitle. Look for a checkbox on the edit page maybe?
If you can grab your data early enough you can do this: function alter_title($t) { return ‘altered-title’; } add_filter(‘pre_post_title’,’alter_title’); add_filter(‘pre_post_name’,’alter_title’); That will change the title and the slug before the post is saved. Of course, you need to work out some logic for that function. As is, it changes all post/page/CPT names and slugs on … Read more