Monday, February 6, 2023
HomeWordPress Developmentplugins - Drawback transferring to class posts web page

plugins – Drawback transferring to class posts web page


I wish to edit the next code and when one of many choices in is chosen, it is going to check with that web page (with java code)

<?php
/*
Plugin Identify: Listing Class Posts - Template "Default"
Plugin URI: http://picandocodigo.web/programacion/wordpress/list-category-posts-wordpress-plugin-english/
Description: Template file for Listing Class Put up Plugin for WordPress which is utilized by plugin by argument template=worth.php
Model: 0.9
Writer: Radek Uldrych & Fernando Briano
Writer URI: http://picandocodigo.web http://radoviny.web
*/

/**
* The format for templates modified since model 0.17.  Since this
* code is included inside CatListDisplayer, $this refers back to the
* occasion of CatListDisplayer that referred to as this file.
*/

/* That is the string which is able to collect all the data.*/
$lcp_display_output="";

// Present class hyperlink:
$lcp_display_output .= $this->get_category_link('robust');

// Present class description:
$lcp_display_output .= $this->get_category_description('p');

// Present the conditional title:
$lcp_display_output .= $this->get_conditional_title();

//Add 'beginning' tag. Right here, I am utilizing an unordered checklist (ul) for instance:
$lcp_display_output .= $this->open_outer_tag('choose', 'lcp_catlist');

/* Posts Loop
 *
 * The code right here can be executed for each put up within the class.  As
 * you possibly can see, the totally different choices are being referred to as from capabilities
 * on the $this variable which is a CatListDisplayer.
 *
 * CatListDisplayer has a operate for every discipline we wish to present.  So
 * you will see get_excerpt, get_thumbnail, and so on.  Now you can go an
 * html tag as a parameter. This tag will sorround the information you need
 * to show. You may as well assign a particular CSS class to every discipline.
 *
 * IMPORTANT: Previous to v0.85 traces 65-67 have been totally different. Make sure that your
 * template is updated.
*/
world $put up;
whereas ( $this->lcp_query->have_posts() ):
  $this->lcp_query->the_post();

  // Verify if protected put up needs to be displayed
  if (!$this->check_show_protected($put up)) proceed;

  //Begin a Listing Merchandise for every put up:
  $lcp_display_output .= $this->open_inner_tag($put up, 'choice');

  //Present the title and hyperlink to the put up:
  $lcp_display_output .= $this->get_post_title($put up);

  // Present classes
  $lcp_display_output .= $this->get_posts_cats($put up);

  // Present tags
  $lcp_display_output .= $this->get_posts_tags($put up);

  //Present feedback:
  $lcp_display_output .= $this->get_comments($put up);

  //Present date:
  $lcp_display_output .= $this->get_date($put up);

  //Present date modified:
  $lcp_display_output .= $this->get_modified_date($put up);

  //Present creator
  $lcp_display_output .= $this->get_author($put up);

  // Present put up ID
  $lcp_display_output .= $this->get_display_id($put up);

  //Customized fields:
  $lcp_display_output .= $this->get_custom_fields($put up);

  //Put up Thumbnail
  $lcp_display_output .= $this->get_thumbnail($put up);

  /**
   * Put up content material - Instance of the right way to use tag and sophistication parameters:
   * This may produce:<div class="lcp_content">The content material</div>
   */
  $lcp_display_output .= $this->get_content($put up, 'div', 'lcp_content');

  /**
   * Put up content material - Instance of the right way to use tag and sophistication parameters:
   * This may produce:<div class="lcp_excerpt">The content material</div>
   */
  $lcp_display_output .= $this->get_excerpt($put up, 'div', 'lcp_excerpt');

  // Get Posts "Extra" hyperlink:
  $lcp_display_output .= $this->get_posts_morelink($put up);

  //Shut li tag
  $lcp_display_output .= $this->close_inner_tag();
endwhile;

// Present no posts textual content if there aren't any posts
$lcp_display_output .= $this->get_no_posts_text();

// Shut the wrapper I opened firstly:
$lcp_display_output .= $this->close_outer_tag();

// If there is a "extra hyperlink", present it:
$lcp_display_output .= $this->get_morelink();

// Get class posts rely
$lcp_display_output .= $this->get_category_count();

//Pagination
$lcp_display_output .= $this->get_pagination();

$this->lcp_output = $lcp_display_output;

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments