Tagged: archive, category page, custom, edit
-
AuthorPosts
-
September 26, 2015 at 8:48 pm #509573
Hello.
Can you help me to make category page as regular page?
I have everything what I need, just it doesn’r work :)1. I need to have just regular page. I would like to copy all code from page.php to category.php (or archive.php).
This doesn’t work for me. As I imagine this should work like normal page. If you visit some category page you should get empty, page with header, sidebar etc.? Right?
Right now, I have posts one after another like blog (even with code from page.php). I have my files in child folder (category.php and archive.php works like that). If I have empty file, only white page shows (as should be).
2. I also heve nice plugin that let me to edit category page as regular post (Enhanced Category Pages ).
What I need to do is to include this code://in category.php or taxonomy.php <?php global $enhanced_category; //get enhanced category post and set it up as global current post $enhanced_category->setup_ec_data(); ?> <!-- enhanced category content --> <?php the_post_thumbnail("medium"); ?> <?php get_template_part( 'content', 'page' ); ?> <!-- custom fields --> <?php get_post_custom(); ?> <?php // If comments are open or we have at least one comment, load up the comment template if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?>
From this I only need part for content. After that I can show only text from my editor.
Can you help me to mix this code?
I think I need only this part:<?php global $enhanced_category; //get enhanced category post and set it up as global current post $enhanced_category->setup_ec_data(); ?>
to run this but right now I can’t even make empty page.
Thnaks!
rmSeptember 28, 2015 at 2:42 pm #510114Hi rimlightstudio!
I’m not familiar with the plugin you mentioned, but a smooth method of making the category page layout editable is to follow the instructions in these threads: http://kriesi.at/documentation/enfold/change-archive-categorytag-blog-style/ https://kriesi.at/support/topic/enfold-blog-pages-and-template-builder/
Cheers!
DakeSeptember 28, 2015 at 3:29 pm #510164Thanks but I don’t want to change look of my blog list, I need different page look, like regular page. This plugin enables ability to edit category page as normal page. you have to include only this little bit of code to work.
Forget this plugin for a while. I can’t make it work even without it.
Let’s say if I put page.php code in category.php I should be able to see everything what is inside content or hardcoded text, right? Right now I see only posts like blog even with code that shouldn’t show posts.
Can you help me only with this? I need just regular page instead of blog like page on my category page.thanks.
September 28, 2015 at 3:57 pm #510200Hi!
I see, have you tried contacting the support team for the plugin?
Unfortuenately it’s not that simple, especially if you want to use the layoutbuiler on the category page as well.
You will need to alter the archive.php and post loop file as mentioned in this thread: https://kriesi.at/support/topic/category-page-and-layout-builder/
https://codex.wordpress.org/Category_Templates
You may need to to enlist the aid of a freelancer to perform the changes you require since custom code is outside of the scope of our support.
Best regards,
DakeJanuary 8, 2016 at 10:54 pm #562223Ok, I think this is not a problem right now. No need to have external plugin to edit category description, It works when I edit category. But without page builder :) It would be nice to have page builder there.
Thanks anyway.
January 11, 2016 at 4:28 pm #563289Hi!
you can make a feature request for Kriesi here: https://kriesi.at/support/enfold-feature-requests/
Cheers!
Andy -
AuthorPosts
- You must be logged in to reply to this topic.