Bahamut
Forum Replies Created
-
Hello,
Thanks for your your feedback.
I’m aware of the Conditional Logic, and I’m willing to purchase it if it meets my requirements.
However, I’m not sure if this helps.I need a function that adds additional fields on the back-end.
For example, on registration you have drop-down menu with selection of houses.
If the user select “house1” I would need to get the address and city of the house1.
That is not visible on the front-end, the user cannot select house1 and change the address or city…Basically, what user select on registration form some additional fields are added in the backend of the registration.
Forum: Plugins
In reply to: [List category posts] Add custom shortcode into the templateThank you for your support, works like charm
Forum: Plugins
In reply to: [List category posts] Add custom shortcode into the templateHello @zymeth25, thank you for your reply.
The problem stays the same, with <br> or any other div wrapper.
Here’s the code for whole template:
<?php /* Plugin Name: List Category Posts - Template "Default" Plugin URI: https://picandocodigo.net/programacion/wordpress/list-category-posts-wordpress-plugin-english/ Description: Template file for List Category Post Plugin for WordPress which is used by plugin by argument template=value.php Version: 0.9 Author: Radek Uldrych & Fernando Briano Author URI: https://picandocodigo.net https://radoviny.net */ /* Copyright 2009 Radek Uldrych (email : [email protected]) Copyright 2009-2015 Fernando Briano (https://picandocodigo.net) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * The format for templates changed since version 0.17. Since this * code is included inside CatListDisplayer, $this refers to the * instance of CatListDisplayer that called this file. */ /* This is the string which will gather all the information.*/ $lcp_display_output = ''; // Show category link: $lcp_display_output .= $this->get_category_link('strong'); // Show the conditional title: $lcp_display_output .= $this->get_conditional_title(); /* Posts Loop * * The code here will be executed for every post in the category. As * you can see, the different options are being called from functions * on the $this variable which is a CatListDisplayer. * * CatListDisplayer has a function for each field we want to show. So * you'll see get_excerpt, get_thumbnail, etc. You can now pass an * html tag as a parameter. This tag will sorround the info you want * to display. You can also assign a specific CSS class to each field. */ global $post; while ( have_posts() ): the_post(); //Add 'starting' tag. Here, I'm using an unordered list (ul) as an example: $lcp_display_output .= '<div class="web-div">'; $lcp_display_output .= '<div class="web-div-inner"'; //Show the title and link to the post: $lcp_display_output .= $this->get_post_title($post, 'lcp_post'); //Thumbnail div $lcp_display_output .= '<div class="web-img">'; //Post Thumbnail $lcp_display_output .= $this->get_thumbnail($post); //End of thumbnail div $lcp_display_output .= '</div>'; /** * Post content - Example of how to use tag and class parameters: * This will produce:<div class="lcp_excerpt">The content</div> */ $lcp_display_output .= $this->get_excerpt($post, 'p'); // Star Rating $lcp_display_output .= '<div class="example">' . rw_the_post_rating() . '</div>'; $lcp_display_output .= '</div>'; // Get Posts "More" link: $lcp_display_output .= $this->get_posts_morelink($post, 'a', 'read_more'); //Show comments: $lcp_display_output .= $this->get_comments($post); //Show date: $lcp_display_output .= ' ' . $this->get_date($post); //Show date modified: $lcp_display_output .= ' ' . $this->get_modified_date($post); //Show author $lcp_display_output .= $this->get_author($post); //Custom fields: $lcp_display_output .= $this->get_custom_fields($post); /** * Post content - Example of how to use tag and class parameters: * This will produce:<p class="lcp_content">The content</p> */ $lcp_display_output .= $this->get_content($post, 'p', 'lcp_content'); // Close the wrapper I opened at the beginning: $lcp_display_output .= '</div>'; endwhile; // If there's a "more link", show it: $lcp_display_output .= $this->get_morelink(); // Get category posts count $lcp_display_output .= $this->get_category_count(); //Pagination $lcp_display_output .= $this->get_pagination(); $this->lcp_output = $lcp_display_output;