antoposse
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Content Type Manager] Show the same field multiple timesI added this code
<?php $meta_values = get_post_meta('difficolta'); ?>but I have always the same problem. The custom field is printed only once
Forum: Plugins
In reply to: [Custom Content Type Manager] Show the same field multiple times<?php $meta_values = get_post_meta($post_id, $key, $single); ?>the parentheses should put the name of my field right?
Forum: Plugins
In reply to: [Custom Content Type Manager] Show the same field multiple timesI do not know what to say!
So just as it is written should work whenever generates an Article?
Because, this is the problem. If I have a single article… this code works if the items are more than two code only works in one of the articles just!!Forum: Plugins
In reply to: [Custom Content Type Manager] Show the same field multiple timesThis in my home.php
<?php /** * The main template file */ ?> <?php Starkers_Utilities::get_template_parts( array( 'parts/shared/html-header', 'parts/shared/header' ) ); ?> <div id="slider"> </div> <div id="container"> <div id="content"> <?php if ( have_posts() ): ?> <ol> <?php while ( have_posts() ) : the_post(); ?> <li> <article class="home"> <div id="meta"> <h2><a href="<?php esc_url( the_permalink() ); ?>" title="<?php the_title(); ?>" rel="bookmark"> <?php the_title(); ?> </a></h2> <time datetime="<?php the_time( 'Y-m-d' ); ?>" pubdate> <?php the_date(); ?> </time> <div class="categoria"> <?php $categories = get_the_category(); $separator = ' '; $output = ''; if($categories){ foreach($categories as $category) { $output .= '<span>Categoria:</span> <a href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator; } echo trim($output, $separator); } ?> </div> <div class="difficolta"> <span>Difficoltà:</span><?php print_custom_field('difficolta'); ?></div> <?php the_excerpt(); ?> </div> <div class="image"> <?php the_post_thumbnail( 'medium' ); ?> </div> </article> </li> <?php endwhile; ?> </ol> </div> <?php Starkers_Utilities::get_template_parts( array( 'parts/shared/sidebar' ) ); ?> </div> </div> <?php else: ?> <h2>No Post</h2> <?php endif; ?> <?php Starkers_Utilities::get_template_parts( array( 'parts/shared/footer','parts/shared/html-footer') ); ?>Forum: Plugins
In reply to: Custom Content Type ManagerSorry now I realized!
Forum: Plugins
In reply to: Custom Content Type Managerthe link that you gave me I see the plugin page, but to write a post I still have to go in this section
Forum: Plugins
In reply to: Custom Content Type ManagerI’m Italian and I do not think you understand what’s wrong!!
could you explain better! thank you very much!!Forum: Plugins
In reply to: Custom Content Type ManagerI explained bad?
Forum: Plugins
In reply to: [Plugin: Events Manager] display the events on my home pageHelp me sorry!!
[No bumping, thank you.]
Forum: Themes and Templates
In reply to: Bad Request ::: error messageheeelp me please
Forum: Themes and Templates
In reply to: The home page newsSorry but I do not need to create a custom field.
I need to show the news in a different page from the home pageForum: Themes and Templates
In reply to: The home page newswhat is the custom field?
Forum: Themes and Templates
In reply to: The home page newsI don’t understand this
..So if the category of posts you want to display is called “Events” then assign the Custom Field “category” with a value of “Events” to the Page…
Forum: Themes and Templates
In reply to: The home page newsI tried to create a page and insert the content @esmi have reported, but unfortunately I can see only the sidebar.
I also tried to create a page template by inserting the contents of the page category.php but WP just get me only the form for leaving comments.
Forum: Themes and Templates
In reply to: The home page newsYes i want see a page whit my post