小编Bur*_*rgi的帖子

如何从自定义帖子类型的帖子中隐藏永久链接部分?

我想隐藏Wordpress中特定帖子类型的帖子标题下的永久链接部分.我怎样才能做到这一点?

wordpress permalinks custom-post-type posts

2
推荐指数
1
解决办法
4769
查看次数

通过在行中查找值来获取列

在Excel中,我一直看着hlookup,vlookup,matchindex,但没有这些功能做到以下几点:

我需要找到一个文本值A1:Z1并获取它的列.例如,我找到了值F1,然后我想要一个结果F:F.

编辑:这是我希望它添加到的功能:

=COUNTIFS(Source!B:B;Result!C3;Source!AT:AT;Result!$D$2)
Run Code Online (Sandbox Code Playgroud)

我需要Source!B:B,或者Source!AT:AT是一个搜索函数,在我的表行和列中查找不同表单(源)中的特定值.

excel excel-formula

1
推荐指数
1
解决办法
5万
查看次数

共享点中的“RunWithElevatedPrivileges”

“RunWithElevatedPrivileges”:在 C# 中以编程方式允许没有管理列表权限的用户将文件上传到共享点列表项对我没有帮助。我的代码是:

SPSecurity.RunWithElevatedPrivileges(delegate
{
    SPWeb web = SPContext.Current.Site;

    // my logic to upload file and edit list item attachments.
});
Run Code Online (Sandbox Code Playgroud)

完整代码

protected void btn_Upload_Click(object sender, EventArgs e)
    {
        StreamWriter sw = new StreamWriter(@"C:\Upload.txt", true);
        try
        {
            if (this.FileUpload1.HasFile)
            {
                string siteURL = SPContext.Current.Web.Url.ToString();
                if (Request["Items"] != null && Request["ListId"] != null)
                {

                    string SelectedItems = Convert.ToString(Request["Items"]);
                    string[] lstJobsIds = SelectedItems.Split(new string[] { "|" }, StringSplitOptions.None);
                    SPList list = null;

                    SPSecurity.RunWithElevatedPrivileges(delegate()
                    {

                        //SPSite site = SPContext.Current.Site;
                        using (SPSite …
Run Code Online (Sandbox Code Playgroud)

c# asp.net sharepoint iis-7 code-access-security

1
推荐指数
1
解决办法
2万
查看次数

file_get_contents():SSL 操作失败,代码为 1。OpenSSL 错误消息

在我的 Laravel 项目中,我在“联系我们”页面上使用 farhanwazir 的 laravelgooglemaps api 来显示固定位置。

联系方式页面:

Route::get('/contactus', function () {
      $config['center'] = 'California State University, Fullerton';
      $config['zoom']='15';
      $config['map_height'] = "300px";
      $config['map_width'] = "300px";
      $config['scrollwheel']= false;
      GMaps::initialize($config);
      $marker['position'] = 'California State University, Fullerton';
      $marker['infowindow_content'] = 'Easywash Centre';
      GMaps::add_marker($marker);
      $map = GMaps::create_map();
return view('contactus')->with('map', $map); });
Run Code Online (Sandbox Code Playgroud)

在我的contactus.blade.php文件中:

  {!! $map['html'] !!}
Run Code Online (Sandbox Code Playgroud)

但有时当我加载“联系我们”页面时,我会收到错误消息:

ErrorException (E_WARNING) file_get_contents(): SSL operation failed with code 1. OpenSSL 错误消息:error:14090086:SSLroutines:ssl3_get_server_certificate:certificate verify failed

在此处输入图片说明

谁能帮助我理解为什么我会收到这样的错误以及如何解决?

ssl google-maps openssl laravel laravel-5

1
推荐指数
1
解决办法
4603
查看次数

Wordpress显示the_content抓取错误帖子的内容.为什么?

我的问题是我正在显示"事件"类别中的一些帖子.然后稍后在同一页面上,我想显示一个来自"spiller"类别的随机帖子,并且工作正常.它会随机发布一个帖子,显示标题,缩略图,但是当我说show_content(或the_excerpt)时,它会显示"事件"类别中帖子的所有内容(或摘录).请帮帮我解决这个问题!

<div class="well span6 Padding10">
    <h4 class="titleFont MarginBottom20">KOMMENDE BEGIVENHEDER</h4>
    <?php
    $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    $args  = array(
        'category_name' => 'events', // Change these category SLUGS to suit your use.
        'paged'         => $paged

    );
    query_posts( $args ); ?>
    <ul>
        <?php
        while ( have_posts() ) : the_post(); ?>
            <li>
                <a href="<?php the_permalink(); ?>"><strong><?php the_title(); ?></strong></a>
            </li>
        <?php endwhile; ?>
    </ul>
</div>

<div class="span6 well" style="height: 250px;"><h4 class="titleFont">SPILLER HIGHLIGHT</h4>
    <div class="row-fluid">
        <?php
        $args       = …
Run Code Online (Sandbox Code Playgroud)

html php wordpress thumbnails customizing

0
推荐指数
1
解决办法
3166
查看次数

Woocommerce 产品页面未显示产品

最近,我将我的 Wordpress 网站从一台主机移到了另一台主机。从那时起,我就面临着 Woocommerce 产品的问题。

例如,产品没有显示在后端,而是显示在产品数量中。同样在主页上,产品正在显示,但单击产品时未显示。

在此处输入图片说明

wordpress woocommerce

0
推荐指数
1
解决办法
1万
查看次数