tonib 0 Report post Posted January 7, 2011 Probably the dumbest question ever, but I can't figure it out. You know, like in the default them of wordpress. At the end of the post, the date , comments, etc. thanx! Share this post Link to post Share on other sites
tonib 0 Report post Posted January 7, 2011 Ok, tried different searches and found this: http://www.pagelines.com/forum/topic.php?id=4648 Not drag and drop, as someone told me in twitter. I'll check those links Share this post Link to post Share on other sites
tonib 0 Report post Posted January 12, 2011 As I stated in that thread, I'm don't understand the code, (thats why I bought pagelines). So, is it reasonable to expect help with this from you? Toni Share this post Link to post Share on other sites
Andrew 207 Report post Posted January 13, 2011 Of course, we'll help... So what is the exact issue you need help with? It sounded like you had it resolved... Share this post Link to post Share on other sites
tonib 0 Report post Posted January 13, 2011 Thank you, Andrew. Metadata at the begining of the post is a nice feature in the magazine view, but not in the blog view, specially if posts are long. More precisely, I find much more useful to have the information about te categories, tags and comments at the end of it, because this is the kind of information/link that is more relevant to me after the post has been read. I'd like to have that data at the end of the post. That's not a drag and drop option. According to the thread I mentioned above, apparently: "you go to template.postloop.php and find the div class meta bar and copy and paste everything in it and put it below the entry content one and there you go." I went there, but I didn't understand the code to do that. Toni Share this post Link to post Share on other sites
cmunns 16 Report post Posted January 13, 2011 Okay, I've gone ahead and done it for you here, it's a lot of code (the whole file actually) just copy and paste the whole entire thing below over what's currently in that file ` <?php /* THE LOOP (Posts, Single Post Content, and Page Content) This file contains the WordPress "loop" which controls the content in your pages & posts. You can control what shows up where using WordPress and PageLines PHP conditionals This theme copyright © 2008-2010 PageLines */ global $pagelines_layout; global $post; global $wp_query; $count = 1; // Used to get the number of the post as we loop through them. $clipcount = 2; // The number of clips in a row $post_count = $wp_query->post_count; // Used to prevent markup issues when there aren't an even # of posts. $paged = intval(get_query_var('paged')); // Control output if on a paginated page if(is_admin()) query_posts('showposts=1'); // For parsing in admin, no posts so set it to one. $thumb_space = get_option('thumbnail_size_w') + 33; // Space for thumb with padding // Start of 'The Loop' if(have_posts()){ while (have_posts()) : the_post(); if(!pagelines_show_clip($count, $paged) || is_admin()): ?> <?php pagelines_register_hook( 'pagelines_loop_post_start', 'theloop' ); //hook ?> <?php if(pagelines('pagetitles') && is_page()):?> <?php the_title(); ?> <?php pagelines_register_hook( 'pagelines_loop_page_title_after', 'theloop' );?> <?php endif;?> <?php if(!is_page()):?> <?php if(pagelines_show_thumb( get_the_ID() )): // Thumbnails ?> <?php the_post_thumbnail('thumbnail');?> <?php endif; ?> <?php pagelines_register_hook( 'pagelines_loop_post_header_start', 'theloop' ); //hook ?> <?php pagelines_register_hook( 'pagelines_loop_posttitle_start', 'theloop' ); //hook the_title(); ?> <?php pagelines_register_hook( 'pagelines_loop_post_title_after', 'theloop' );?> <?php if(pagelines_show_excerpt( get_the_ID() )): // Post Excerpt ?> <?php pagelines_register_hook( 'pagelines_loop_before_post_excerpt', 'theloop' ); //hook the_excerpt(); pagelines_register_hook( 'pagelines_loop_after_post_excerpt', 'theloop' ); //hook ?> <?php if(pagelines_is_posts_page() && !pagelines_show_content( get_the_ID() )): // 'Continue Reading' link ?> <?php e_pagelines('continue_reading_text', __('Continue Reading', 'pagelines'));?> <?php _e('→', 'pagelines');?> <?php endif;?> <?php endif; ?> <?php endif;?> <?php if(pagelines_show_content( get_the_ID() )): // Post and Page Content ?> <?php pagelines_register_hook( 'pagelines_loop_before_post_content', 'theloop' ); //hook ?> <?php the_content(__('Continue reading »','pagelines'));?> <?php if(is_single()) wp_link_pages(__('Pages:', 'pagelines'), '', __('number', 'pagelines')); $edit_type = (is_page()) ? __('Edit Page','pagelines') : __('Edit Post','pagelines'); edit_post_link( '['.$edit_type.']', '', ''); pagelines_register_hook( 'pagelines_loop_after_post_content', 'theloop' ); //hook ?> <?php pagelines_register_hook( 'pagelines_loop_metabar_start', 'theloop' ); //hook ?> <?php if(pagelines('byline_author')):?> <?php _e('by','pagelines');?> <?php echo get_the_author(); ?> <?php endif;?> <?php if(pagelines('byline_date')):?> <?php _e('on','pagelines');?> <?php the_time(get_option('date_format')); ?> <?php endif;?> <?php if(pagelines('byline_comments')):?> <?php echo '·';?> <?php comments_number(); ?> <?php endif;?> <?php if(pagelines('byline_categories')):?> <?php echo '·';?> <?php _e('in','pagelines');?> <?php the_category(', ') ?> <?php endif;?> <?php edit_post_link(__('Edit', 'pagelines'), '[', ']');?> <?php pagelines_register_hook( 'pagelines_loop_metabar_end', 'theloop' ); //hook ?> <?php the_tags(__('Tagged with: ', 'pagelines'),' • ',''); ?> <?php endif;?> <?php pagelines_register_hook( 'pagelines_loop_post_end', 'theloop' ); //hook ?> <?php endif; // End of Full-Width Post Area if(pagelines_show_clip($count, $paged) || is_admin()): // Start Clips if($clipcount % 2 == 0):?> <?php pagelines_register_hook( 'pagelines_loop_clipbox_start', 'theloop' ); //hook ?> <?php $clips_in_row = 1;?> <?php endif;?> <?php $clip_class = (($clipcount+1) % 2 == 0) ? $clip_class = 'clip clip-right' : $clip_class = 'clip';?> <?php pagelines_register_hook( 'pagelines_loop_clip_start', 'theloop' ); //hook ?> <?php if(pagelines_show_thumb( get_the_ID(), 'clip' )): // Thumbnails ?> <?php the_post_thumbnail(array( 40, 40 ));?> <?php endif; ?> <?php the_title(); ?> <?php the_time(get_option('date_format')); ?> <?php _e('by','pagelines');?> <?php echo get_the_author(); ?> <?php edit_post_link(__('Edit', 'pagelines'), '[', ']');?> <?php pagelines_register_hook( 'pagelines_loop_clipmeta_end', 'theloop' ); //hook?> <?php if(pagelines_show_excerpt( get_the_ID() )): // Excerpt ?> <?php the_excerpt(); ?> <?php e_pagelines('continue_reading_text', __('Continue Reading', 'pagelines'));?> <?php _e('→', 'pagelines');?> <?php pagelines_register_hook( 'pagelines_loop_clip_excerpt_end', 'theloop' ); //hook ?> <?php endif;?> <?php pagelines_register_hook( 'pagelines_loop_clip_end', 'theloop' ); //hook ?> <?php if(($clipcount+1) % 2 == 0 || $count == $post_count ):?> <?php pagelines_register_hook( 'pagelines_loop_clipbox_end', 'theloop' ); //hook ?> <?php endif; $clipcount++; endif; // End of Clips $count++; // Increment the post counter for formatting purposes. endwhile; // End of 'The Loop' // or if no posts... } else { ?> <?php if(is_search()):?> <?php _e('No results for ');?>"<?php the_search_query();?>" <?php _e('Try another search?', 'pagelines');?> <?php else:?> <?php _e('Nothing Found','pagelines');?> <?php _e('Sorry, what you are looking for isn't here.', 'pagelines');?> <?php endif;?> <?php get_search_form(); ?> <?php } ` Share this post Link to post Share on other sites
tonib 0 Report post Posted January 14, 2011 Thanx, Adam I'did the replacement, and got this message: Parse error: syntax error, unexpected T_STRING in /home/content/78/7260578/html/wp-content/themes/platformpro/template.postloop.php on line 214 I tried a coupple of times with same result. I'm working in a mac computer, and I used the TextEdit app to cut and paste the code from my firefox browser. Toni Share this post Link to post Share on other sites
bryan-hadaway 3 Report post Posted January 14, 2011 I'll mark for review to have the code looked over. Thanks, Bryan Share this post Link to post Share on other sites
Andrew 207 Report post Posted January 15, 2011 Geez, don't know exactly what Adam is trying to accomplish with that one... The right way is to use hooks.. Are you using the child theme? Share this post Link to post Share on other sites
tonib 0 Report post Posted January 15, 2011 Hi Andrew, No, I'm just following my only lead, which is this thread: http://www.pagelines.com/forum/topic.php?id=4648 Adam tried to replicate that solution Thanks Toni Share this post Link to post Share on other sites
cmunns 16 Report post Posted January 15, 2011 Okay well let's back up a minute. Are you using the PlatformBase child theme? Any customization is going to start right there. Share this post Link to post Share on other sites
tonib 0 Report post Posted January 16, 2011 hi Adam, I'm not using it. Need directions for that. Toni Share this post Link to post Share on other sites
catrina 103 Report post Posted January 16, 2011 You must activate Platform Base first. In order to do that, go to Appearance > Themes on your Dashboard. Click on the "Activate" link below the PlatformBase theme and go into the themes folder (in your WordPress install) and rename the PlatformBase theme folder "platformpro" (if you don't do this, it will not work). Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
tonib 0 Report post Posted January 16, 2011 I followed your youtube for installing platformpro, so Platform Base is already activated. In my wordpress installation themes folder, I've got two folders: - platformbase - platformpro Do you mean I should rename the socond folder, like "platformpro2" for instance? Thanks Share this post Link to post Share on other sites
cmunns 16 Report post Posted January 16, 2011 You shouldn't have to rename anything. Just double check the PlatformBase is the "active" theme by going to your Themes page. Then we can use a hook to add the metabar to the bottom. This means adding code to your functions.php file in the PlatformBase folder Add this code to the bottom of the file ` add_action('pagelines_loop_after_post_content','meta_bar'); function meta_bar(){?> <?php pagelines_register_hook( 'pagelines_loop_metabar_start', 'theloop' ); //hook ?> <?php if(pagelines('byline_author')):?> <?php _e('by','pagelines');?> <?php echo get_the_author(); ?> <?php endif;?> <?php if(pagelines('byline_date')):?> <?php _e('on','pagelines');?> <?php the_time(get_option('date_format')); ?> <?php endif;?> <?php if(pagelines('byline_comments')):?> <?php echo '·';?> <?php comments_number(); ?> <?php endif;?> <?php if(pagelines('byline_categories')):?> <?php echo '·';?> <?php _e('in','pagelines');?> <?php the_category(', ') ?> <?php endif;?> <?php edit_post_link(__('Edit', 'pagelines'), '[', ']');?> <?php pagelines_register_hook( 'pagelines_loop_metabar_end', 'theloop' ); //hook ?> <?php } ` This will give you the info on the bottom of the single post pages. Then we can use CSS to hide the original Share this post Link to post Share on other sites
tonib 0 Report post Posted January 17, 2011 Awesome, it worked nicely. Share this post Link to post Share on other sites
tonib 0 Report post Posted January 17, 2011 What is the next step? Thanx Share this post Link to post Share on other sites
cmunns 16 Report post Posted January 17, 2011 Great. Now add this to your base.css file `.post-title .metabar {display:none;}` and that should get rid of the first occurrence of it on top. Share this post Link to post Share on other sites
tonib 0 Report post Posted January 17, 2011 Perfect! Thank you very much Share this post Link to post Share on other sites