[wordpress插件] Browse Content by My Solr Server通过我的Solr服务器浏览内容

wordpress 插件 文章 2020-03-11 19:40 476 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Browse Content by My Solr Server widget allows to navigate through WordPress content by standard WordPress attributes (categories, tags and authors) and custom fields.

“按我的Solr服务器浏览内容”小部件允许按标准WordPress属性(类别,标签和作者)和自定义字段浏览WordPress内容。

You can see a demo at http://www.eolya.fr/blog/

您可以在http://www.eolya.fr/blog/ 上观看演示。

安装步骤

Prerequisite

先决条件

Install and activate Advanced Search by My Solr Server plugin 2.0.0 and greater (https://wordpress.org/extend/plugins/advanced-search-by-my-solr-server/

通过My Solr Server插件2.0.0及更高版本安装并激活 Advanced Search (https://wordpress.org/extend/plugins/advanced-search-by-my-solr-server/

).

)。

Index your blog content into Solr (see Solr hosting provider here : http://www.mysolrserver.com/)

将您的博客内容编入Solr中(请参阅此处的Solr托管提供商:http://www.mysolrserver.com/)

Installation

安装

    1. Upload the browse-content-by-my-solr-server folder to the /wp-content/plugins/ directory
    2. browse-content-by-my-solr-server 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the Plugins menu in WordPress
    4. 通过WordPress中的 Plugins 菜单激活插件

    5. Drad & drop the widget in the sidebar
    6. 将小部件拖放到边栏中

    7. Edit the widget settings
    8. 编辑小部件设置

    Configuration

    配置

      1. Provide a widget title
      2. 提供小部件标题

      3. Provide the standard WordPress attributes (categories, tags and authors) and custom fields to be used in the widget
      4. 提供要在窗口小部件中使用的标准WordPress属性(类别,标签和作者)和自定义字段

      5. Select the template file from you theme to be used to show posts list.

      6. 从主题中选择用于显示帖子列表的模板文件。

        By default, the search.php template is used.

        默认情况下,使用 search.php 模板。

        You can chose to create a specific template.

        您可以选择创建一个特定的模板。

        For exemple, with the default WordPress themes, you can copy search.php to browse.php and remove the line that display the message “Search Results for:”.

        例如,使用默认的WordPress主题,您可以将search.php复制到browser.php,并删除显示消息“ Search Results for:”的行。

        A browse.php sample file is provided in the sample directory.

      7. 示例目录中提供了一个browser.php示例文件。

      Customize the posts list

      自定义帖子列表

      As explained just before, you can create a dedicated template file in your theme based for example on search.php.

      如前所述,您可以基于例如search.php在主题中创建专用模板文件。

      This template is in charge to implement the WordPress loop.

      该模板负责实现WordPress循环。


      <?php if(have_posts()):?>



      <?php while(have_posts()):the_post();

      ?>

      ?>



      <?php结束;

      ?>

      ?>

      Customize the widget display

      自定义窗口小部件显示

      The widget uses the template files template/mssbc_default.php and template/mssbc_default.css.

      该小部件使用模板文件 template / mssbc_default.php template / mssbc_default.css

      You can implement your own template by copying theses two files as mssbc_custom.php and mssbc_custom.css.

      您可以通过将这两个文件复制为 mssbc_custom.php mssbc_custom.css 来实现自己的模板。

      These two new files can be located in the widget’s template directory or in your theme’s main directory.

      这两个新文件可以位于小部件的模板目录或主题的主目录中。

下载地址
https://downloads.wordpress.org/plugin/browse-content-by-my-solr-server.2.0.4.zip
-EOF-

AI助手支持GPT4.0