-
AuthorPosts
-
December 23, 2014 at 6:30 pm #372182
Please, look at the post on Enfold demosite. There is the category link above of the feature image, and the right-side categories menu too. How it is possible to assign these category’s links with the pages?
The main reason of this behavior is the following: I can use any page created with advanced content editor instead of regular category page (which is the same for all categories, thanks to archive.php template). Each of created wp-posts category has the ID – it will be fine to find the way to assign this ID with custom page. How it is possible to do? I have been trying to find some plugin or another solution, but without of success yet. Please, help me with this.
December 23, 2014 at 7:09 pm #372202Hey Sergey!
It’s not possible to add categories to pages. Are you trying to list your pages with one of our shortcodes like the regular posts? It would be best to create posts or portfolios for this purpose. Or you could create a new custom post type with this plugin, https://wordpress.org/plugins/custom-post-type-ui/.
Cheers!
ElliottDecember 23, 2014 at 8:59 pm #372262Hey Elliott!
Hmmm, I’m afraid, I don’t understand you right. Let me explain a little bit more. So, now we can add the categories to page with help of the Enfold Blog Elements and Post Slider element, right? So, we can create nice and unique looked page for each of category. Only one “little” thing is here: we need to assign each of that unique page with related category created under “Posts -> Category” WP-admin panel.
So, how I see the possible workflow for this:
1. When admin creats the category, he/she defines the name, slug, description of the new category and also admin can select the parens for new category (if it is required, of course). What if admin can also define there the link to the page, which will be assigned with this category? It looks like how works the WPCustom Category Images plugin. Well, let’s think – our admin can select what the page will assigned with the category here.
2. When the visitors click-on to the category links, the archive.php is called. The php-script, which is inserted into archive.php (little hook), checks then – eithe the called category is already assigned with some page, or not yet. In case the category is already assigned with defined page, the archive.php redirects the client’s browser to that page. Bingo! If the category isn’t assigned yet, the archive.php works as usual.
With this solution we can make all category’ pages as unique for defined category/categories, without of additional templates for this. I well understand: this question is out of support, but I think, the solution already exists, I hope.
December 24, 2014 at 6:05 pm #372454Hi!
I’m sorry but I’m not sure I understand. It sounds like your trying to customize the archive category pages. If so then see here, http://codex.wordpress.org/Category_Templates, you can create a category.php template file and use that to edit your category pages.
Regards,
ElliottJanuary 3, 2015 at 7:47 pm #374542Hey!
Ok, let’s do the my issue simpler a litle bit. As we know, there is the post category’s description field in WP-admin (under slug and parent lines):
The Enfold theme can shows this description text at the top of posts on the category page. But how it is possible to use some shortcodes for the description text? Now the text of category description shows as simple unformatted text. In order to make the view of that text better a little: how is possible to use some shortcodes for formatting (?), like below:
[av_heading heading='Description of category' tag='h2' style='blockquote modern-quote modern-centered' size='25' subheading_active='subheading_below' subheading_size='15' padding='10' color='' custom_font=''] Some subdescription's underline of text. [/av_heading]
Regards,
SergeyJanuary 5, 2015 at 6:04 pm #375207Hi!
Open up /enfold/archive.php and change line 29 from this.
<?php echo term_description(); ?>
To this.
<?php echo do_shortcode(term_description()); ?>
Best regards,
ElliottJanuary 6, 2015 at 9:30 am #375523Hi Elliott!
Thank you for kind support! Five stars, as usual :) The Enfold theme with Kriesi support team forever!!!
-
AuthorPosts
- The topic ‘Is it possible to assign wp-links to post' category with page/pages?’ is closed to new replies.