It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: https://blet.shop/ticket/2471?format=rss

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  <head>
  12.    <title>
  13.      #2471 (bbp_exclude_forum_ids function bugging custom WP_Query)
  14.     – bbPress Trac
  15.    </title>
  16.      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  17.      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  18.    <!--[if IE]><script type="text/javascript">
  19.      if (/^#__msie303:/.test(window.location.hash))
  20.        window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
  21.    </script><![endif]-->
  22.          <link rel="search" href="/search" />
  23.          <link rel="prev" href="/ticket/2470" title="Ticket #2470" />
  24.          <link rel="last" href="/ticket/3609" title="Ticket #3609" />
  25.          <link rel="help" href="/wiki/TracGuide" />
  26.          <link rel="alternate" href="/ticket/2471?format=csv" type="text/csv" class="csv" title="Comma-delimited Text" />
  27.          <link rel="alternate" href="/ticket/2471?format=tab" type="text/tab-separated-values" class="tab" title="Tab-delimited Text" />
  28.          <link rel="alternate" href="/ticket/2471?format=rss" type="application/rss+xml" class="rss" title="RSS Feed" />
  29.          <link rel="next" href="/ticket/2472" title="Ticket #2472" />
  30.          <link rel="start" href="/wiki" />
  31. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/trac.css?v=220" />
  32. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/ticket.css?v=220" />
  33. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/jquery-ui/jquery-ui.css?v=220" />
  34. <link rel="stylesheet" href="https://s.w.org/style/trac/common/css/jquery-ui-addons.css?v=220" />
  35.          <link rel="icon" href="https://bbpress.org/favicon.ico" type="image/x-icon" />
  36.          <link rel="first" href="/ticket/1" title="Ticket #1" />
  37.    <style id="trac-noscript" type="text/css">.trac-noscript { display: none !important }</style>
  38.      <link type="application/opensearchdescription+xml" rel="search" href="/search/opensearch" title="Search bbPress Trac" />
  39.    <script type="text/javascript">
  40.      var auto_preview_timeout=2.0;
  41.      var form_token="8e83838af34df447831db0f7";
  42.      var jquery_ui={"ampm":true,"date_format":"mm/dd/yy","day_names":{"abbreviated":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"narrow":["Su","Mo","Tu","We","Th","Fr","Sa"],"wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"default_timezone":null,"first_week_day":0,"month_names":{"abbreviated":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wide":["January","February","March","April","May","June","July","August","September","October","November","December"]},"period_names":{"am":["AM","AM"],"pm":["PM","PM"]},"show_timezone":false,"time_format":"hh:mm:ss TT","timepicker_separator":" ","timezone_iso8601":false,"timezone_list":null};
  43.      var comments_prefs={"comments_order":"oldest","show_comments":"true","show_prop_changes":"true"};
  44.    </script>
  45. <link rel="dns-prefetch" href="//fonts.googleapis.com" />
  46. <link rel="dns-prefetch" href="//www.googletagmanager.com" />
  47. <script>//<![CDATA[
  48. (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  49. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  50. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  51. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  52. })(window,document,'script','dataLayer','GTM-P24PF4B');
  53. //]]></script>
  54. <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&amp;subset=latin%2Clatin-ext&amp;ver=3.8.1-alpha" type="text/css" media="all" />
  55. <link type="text/css" media="screen" rel="stylesheet" href="//bbpress.org/wp-content/themes/bb-base/style.css?v=24" />
  56. <link type="text/css" media="screen" rel="stylesheet" href="//bbpress.org/wp-content/themes/bb-base/style-bbpress.css?v=24" />
  57.  
  58. <meta name="viewport" content="width=device-width" />
  59. <link rel="stylesheet" href="https://s.w.org/wp-includes/css/dashicons.min.css?20150710" type="text/css" />
  60. <link rel="stylesheet" type="text/css" href="https://s.w.org/style/trac/wp-trac.css?220" />
  61. <script src="https://s.w.org/style/trac/common/js/jquery.js?v=220"></script>
  62. <link rel="canonical" href="https://bbpress.trac.wordpress.org/ticket/2471" />
  63. <script src="https://s.w.org/style/trac/common/js/babel.js?v=220"></script>
  64. <script src="https://s.w.org/style/trac/common/js/trac.js?v=220"></script>
  65. <script src="https://s.w.org/style/trac/common/js/search.js?v=220"></script>
  66. <script src="https://s.w.org/style/trac/common/js/folding.js?v=220"></script>
  67. <script src="https://s.w.org/style/trac/common/js/wikitoolbar.js?v=220"></script>
  68. <script src="https://s.w.org/style/trac/common/js/resizer.js?v=220"></script>
  69. <script src="https://s.w.org/style/trac/common/js/auto_preview.js?v=220"></script>
  70. <script src="https://s.w.org/style/trac/common/js/jquery-ui.js?v=220"></script>
  71. <script src="https://s.w.org/style/trac/common/js/jquery-ui-addons.js?v=220"></script>
  72. <script src="https://s.w.org/style/trac/common/js/jquery-ui-i18n.js?v=220"></script>
  73.    <script type="text/javascript">
  74.      jQuery("#trac-noscript").remove();
  75.      jQuery(document).ready(function($) {
  76.        $(".trac-autofocus").focus();
  77.        $(".trac-target-new").attr("target", "_blank");
  78.        if ($.ui) { /* is jquery-ui added? */
  79.          $(".trac-datepicker:not([readonly])").prop("autocomplete", "off").datepicker();
  80.          $(".trac-datetimepicker:not([readonly])").prop("autocomplete", "off").datetimepicker();
  81.          $("#main").addClass("trac-nodatetimehint");
  82.        }
  83.        $(".trac-disable").disableSubmit(".trac-disable-determinant");
  84.        setTimeout(function() { $(".trac-scroll").scrollToTop() }, 1);
  85.        $(".trac-disable-on-submit").disableOnSubmit();
  86.      });
  87.    </script>
  88. <script src="https://s.w.org/style/trac/common/js/threaded_comments.js?v=220"></script>
  89.    <script type="text/javascript">
  90.      jQuery(document).ready(function($) {
  91.        $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section"));
  92.        $(".foldable").enableFolding(false, true);
  93.      /*<![CDATA[*/
  94.        $("#attachments").toggleClass("collapsed");
  95.        $("#trac-up-attachments").click(function () {
  96.          $("#attachments").removeClass("collapsed");
  97.          return true;
  98.        });
  99.        $("#modify").parent().toggleClass("collapsed");
  100.        $(".trac-topnav a").click(function() { $("#modify").parent().removeClass("collapsed"); });
  101.        function setRevertHandler() {
  102.          $("button.trac-revert").click(function() {
  103.            var div = $("div", this);
  104.            var field_name = div[0].id.substr(7);
  105.            var field_value = div.text();
  106.            var input = $("#propertyform *[name=field_" + field_name + "]");
  107.            if (input.length > 0) {
  108.              if (input.filter("input[type=radio]").length > 0) {
  109.                input.val([field_value]);
  110.              } else if (input.filter("input[type=checkbox]").length > 0) {
  111.                input.val(field_value == "1" ? [field_value] : []);
  112.              } else {
  113.                input.val(field_value);
  114.              }
  115.            } else { // Special case for CC checkbox
  116.              input = $("#propertyform input[name=cc_update]").val([]);
  117.            }
  118.            input.change();
  119.            // Remove the revert button
  120.            if ($(this).closest("tbody").children("tr").length === 1)
  121.              $(this).closest(".trac-change-panel").remove();
  122.            else
  123.              $(this).closest("tr").remove();
  124.            return false;
  125.          });
  126.        }
  127.        setRevertHandler();
  128.        var comment_focused = false;
  129.        $("#comment").focus(function() { comment_focused = true; })
  130.                     .blur(function() { comment_focused = false; });
  131.        $("#propertyform").autoSubmit({preview: '1'}, function(data, reply) {
  132.          var items = $(reply);
  133.          // Update ticket box
  134.          $("#ticket").replaceWith(items.filter('#ticket'));
  135.          // Replaces content of #changelog, without recreating it
  136.          $("#changelog").empty().append(items.filter("#changelog").contents());
  137.          // Apply comments order and "Show" preferences
  138.          applyCommentsOrder(
  139.            $('#prefs input[name="trac-comments-order"]:checked').val());
  140.          // Show warning
  141.          var new_changes = $("#changelog .trac-new");
  142.          $("#trac-edit-warning").toggle(new_changes.length != 0);
  143.          if (new_changes.length != 0)
  144.            $("#changelog").parent().show().removeClass("collapsed");
  145.          // Update view time
  146.          $("#propertyform input[name='view_time']").replaceWith(items.filter("input[name='view_time']"));
  147.          // Update preview
  148.          var preview = $("#ticketchange").html(items.filter('#preview').children());
  149.          var show_preview = preview.children().length != 0;
  150.          $("#ticketchange").toggle(show_preview);
  151.          setRevertHandler();
  152.          // Execute scripts to load stylesheets
  153.          items.filter("script").appendTo("head");
  154.        }, "#ticketchange .trac-loading");
  155.        $("#trac-comment-editor").autoSubmit({preview_comment: '1'}, function(data, reply) {
  156.          var comment = $("#trac-comment-editor").next("div.comment").html(reply);
  157.          comment.toggle(comment.children().length != 0);
  158.        }, "#changelog .trac-loading");
  159.        /*]]>*/
  160.      });
  161.    </script>
  162.  </head>
  163.  <body id="wordpress-org" class="bbpress trac wporg-make make-bbpress">
  164. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P24PF4B" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  165.    <dl id="accessibility">
  166.        <dt>Skip to:</dt>
  167.        <dd><a href="#content" title="Skip to content">Content</a></dd>
  168.    </dl>
  169.    <div id="wporg-header">
  170.        <div id="header-inner">
  171. <button id="mobile-menu-button" aria-expanded="false"><span class="screen-reader-text">Toggle Menu</span></button>
  172.            <ul id="wporg-header-menu">
  173.                <li><a href="https://bbpress.org/about/">About</a></li>
  174.                <li><a href="https://bbpress.org/plugins/">Plugins</a></li>
  175.                <li><a href="https://bbpress.org/themes/">Themes</a></li>
  176.                <li><a href="https://codex.bbpress.org/">Documentation</a></li>
  177.                <li><a href="https://bbpress.org/blog/">Blog</a></li>
  178.                <li><a href="https://bbpress.org/forums/">Support</a></li>
  179.                <li class="download"><a href="https://bbpress.org/download/">Download</a></li>
  180.            </ul>
  181.            <h1><a href="https://bbpress.org">bbPress.org</a></h1>
  182.        </div>
  183.    </div>
  184. <div id="subnav">
  185. <div id="subnav-inner">
  186. <ul id="nav-user" class="menu">
  187. <li class="last first">
  188. <a href="https://login.wordpress.org/?redirect_to=https%3A%2F%2Fbbpress.trac.wordpress.org%2Fticket%2F2471" class="login">Login</a>
  189. </li>
  190. </ul>
  191. </div>
  192. </div>
  193. <div id="banner">
  194. <form id="search" action="/search" method="get">
  195.        <div>
  196.          <label for="proj-search">Search:</label>
  197.          <input type="text" id="proj-search" name="q" size="18" value="" />
  198.          <input type="submit" value="Search" />
  199.        </div>
  200.      </form>
  201. </div>
  202.    <div id="mainnav" class="nav">
  203.    <ul>
  204.      <li class="first"><a href="/timeline">Timeline</a></li><li class="active"><a href="/report">View Tickets</a></li><li><a href="/roadmap">Roadmap</a></li><li><a href="/browser">Browse Source</a></li><li class="last"><a href="/ticketgraph">Ticket Graph</a></li>
  205.    </ul>
  206.  </div>
  207.    <div id="main">
  208.      <div id="ctxtnav" class="nav">
  209.        <h2>Context Navigation</h2>
  210.        <ul>
  211.          <li class="first"><span>&larr; <a class="prev" href="/ticket/2470" title="Ticket #2470">Previous Ticket</a></span></li><li class="last"><span><a class="next" href="/ticket/2472" title="Ticket #2472">Next Ticket</a> &rarr;</span></li>
  212.        </ul>
  213.        <hr />
  214.      </div>
  215.    <div id="content" class="ticket">
  216.        <div id="ticket" class="trac-content ">
  217.  <div class="date">
  218.    <p>Opened <a class="timeline" href="/timeline?from=2013-11-16T01%3A10%3A23Z&amp;precision=second" title="See timeline at 11/16/2013 01:10:23 AM">11 years ago</a></p>
  219.    <p>Closed <a class="timeline" href="/timeline?from=2014-03-05T20%3A06%3A49Z&amp;precision=second" title="See timeline at 03/05/2014 08:06:49 PM">11 years ago</a></p>
  220.    <p>Last modified <a class="timeline" href="/timeline?from=2014-03-05T20%3A07%3A32Z&amp;precision=second" title="See timeline at 03/05/2014 08:07:32 PM">11 years ago</a></p>
  221.  </div>
  222.  <h2>
  223.    <a href="/ticket/2471" class="trac-id">#2471</a>
  224.    <span class="trac-status">
  225.      <a href="/query?status=closed">closed</a>
  226.    </span>
  227.    <span class="trac-type">
  228.      <a href="/query?status=!closed&amp;type=defect+(bug)">defect (bug)</a>
  229.    </span>
  230.    <span class="trac-resolution">
  231.      (<a href="/query?status=closed&amp;resolution=fixed">fixed</a>)
  232.    </span>
  233.  </h2>
  234.  <h1 id="trac-ticket-title" class="searchable">
  235.    <span class="summary">bbp_exclude_forum_ids function bugging custom WP_Query</span>
  236.  </h1>
  237.  <table class="properties">
  238.    <tr>
  239.      <th id="h_reporter">Reported by:</th>
  240.      <td headers="h_reporter" class="searchable">
  241.  <a href="https://profiles.wordpress.org/unsalkorkmaz" data-nicename="unsalkorkmaz">
  242.    <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=96 2x" height="48" width="48" alt="unsalkorkmaz's profile" />
  243.  </a>
  244.    <a class="trac-author" href="/query?status=!closed&amp;reporter=unsalkorkmaz">unsalkorkmaz</a>
  245. </td>
  246.      <th id="h_owner">Owned by:</th>
  247.      <td headers="h_owner">
  248.  <a href="https://profiles.wordpress.org/johnjamesjacoby">
  249.    <img class="avatar" src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="johnjamesjacoby's profile" />
  250.  </a>
  251.    <a class="trac-author" href="/query?status=!closed&amp;owner=johnjamesjacoby">johnjamesjacoby</a>
  252. </td>
  253.    </tr>
  254.    <tr>
  255.        <th id="h_milestone">
  256.          Milestone:
  257.        </th>
  258.        <td headers="h_milestone">
  259.              <a class="closed milestone" href="/milestone/2.6" title="Completed 5 years ago (11/12/2019 05:00:00 PM)">2.6</a>
  260.        </td>
  261.        <th id="h_priority">
  262.          Priority:
  263.        </th>
  264.        <td headers="h_priority">
  265.              <a href="/query?status=!closed&amp;priority=high">high</a>
  266.        </td>
  267.    </tr><tr>
  268.        <th id="h_severity">
  269.          Severity:
  270.        </th>
  271.        <td headers="h_severity">
  272.              <a href="/query?status=!closed&amp;severity=normal">normal</a>
  273.        </td>
  274.        <th id="h_version">
  275.          Version:
  276.        </th>
  277.        <td headers="h_version">
  278.              <a href="/query?status=!closed&amp;version=2.4.1">2.4.1</a>
  279.        </td>
  280.    </tr><tr>
  281.        <th id="h_component">
  282.          Component:
  283.        </th>
  284.        <td headers="h_component">
  285.              <a href="/query?status=!closed&amp;component=Component+-+Forums">Component - Forums</a>
  286.        </td>
  287.        <th id="h_keywords">
  288.          Keywords:
  289.        </th>
  290.        <td headers="h_keywords" class="searchable">
  291.              <a href="/query?status=!closed&amp;keywords=~needs-testing">needs-testing</a> <a href="/query?status=!closed&amp;keywords=~needs-patch">needs-patch</a>
  292.        </td>
  293.    </tr><tr>
  294.        <th id="h_cc">
  295.          Cc:
  296.        </th>
  297.        <td headers="h_cc" class="searchable">
  298.              nashwan.doaqan@…
  299.        </td>
  300.        <th class="missing">
  301.        </th>
  302.        <td>
  303.        </td>
  304.    </tr>
  305.  </table>
  306.  <div class="description">
  307.    <h3 id="comment:description">
  308.      Description
  309.    </h3>
  310.    <div class="searchable">
  311.      <p>
  312. How to re-produce:<br />
  313. 1) Create 1 normal forum and 1 private forum<br />
  314. 2) Open a topic in normal forum and post a reply<br />
  315. 3) Create a custom function that using a WP_Query in reply content. <br />
  316. You will see bbPress adds extra meta_query in your WP_Query and basically its corrupting your query for everyone except keymasters like this:<br />
  317. </p>
  318. <pre class="wiki">    [meta_query] =&gt; WP_Meta_Query Object
  319.        (
  320.            [queries] =&gt; Array
  321.                (
  322.                    [0] =&gt; Array
  323.                        (
  324.                            [key] =&gt; _bbp_forum_id
  325.                            [value] =&gt; 1031
  326.                            [type] =&gt; numeric
  327.                            [compare] =&gt; !=
  328.                        )
  329.  
  330.                )
  331.  
  332.            [relation] =&gt; AND
  333.        )
  334. </pre><p>
  335. Is this working as intended? If it is, can you give me a solution for this?<br />
  336. </p>
  337.  
  338.    </div>
  339.  </div>
  340. </div>
  341.          
  342.  
  343.        <div>
  344.          <div class="trac-noscript" style="position: relative">
  345.            <form id="prefs" method="get" action="/prefs" style="position: absolute; right: 0">
  346.              <div id="trac-comments-order">
  347.                <input type="radio" id="trac-comments-oldest" name="trac-comments-order" value="oldest" checked="checked" />
  348.                <label for="trac-comments-oldest">Oldest first</label>
  349.                <input type="radio" id="trac-comments-newest" name="trac-comments-order" value="newest" />
  350.                <label for="trac-comments-newest">Newest first</label>
  351.                <span id="trac-threaded-toggle" style="display: none">
  352.                  <input type="radio" id="trac-comments-threaded" name="trac-comments-order" value="threaded" />
  353.                  <label for="trac-comments-threaded">Threaded</label>
  354.                </span>
  355.              </div>
  356.              <div>
  357.                <input id="trac-show-comments-toggle" type="checkbox" checked="checked" />
  358.                <label for="trac-show-comments-toggle">Show comments</label>
  359.                <input id="trac-show-property-changes-toggle" type="checkbox" />
  360.                <label for="trac-show-property-changes-toggle">Show property changes</label>
  361.              </div>
  362.            </form>
  363.          </div>
  364.          <h3 class="foldable">Change History <span class="trac-count">(8)</span></h3>
  365.          <div id="changelog">
  366.              <div class="change" id="trac-change-1-1384565543197654">
  367.                
  368.  <h3 class="change">
  369.    <span class="threading">
  370.      <span id="comment:1" class="cnum">
  371.    <a href="#comment:1">#1</a>
  372.  </span>
  373.    </span>
  374.        <span class="avatar">
  375.          <span class="username-line"><a href="https://profiles.wordpress.org/unsalkorkmaz" class="profile-link">
  376.            <img src="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="unsalkorkmaz" data-nicename="unsalkorkmaz"><span class="trac-author">unsalkorkmaz</span></span></a></span>
  377.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-16T01%3A32%3A23Z&amp;precision=second" title="See timeline at 11/16/2013 01:32:23 AM">11 years</a> ago</span>
  378.        </span>
  379.    <div class="trac-ticket-buttons">
  380.    </div>
  381.  </h3>
  382.  <div class="trac-ticket-buttons"></div>
  383.    <div class="comment searchable">
  384.      <p>
  385. my temporary solution is:<br />
  386. </p>
  387. <pre class="wiki">remove_action( 'pre_get_posts', 'bbp_pre_get_posts_normalize_forum_visibility', 4 );
  388. </pre><p>
  389. wp_query run<br />
  390. </p>
  391. <pre class="wiki">add_action( 'pre_get_posts', 'bbp_pre_get_posts_normalize_forum_visibility', 4 );
  392. </pre>
  393.    </div>
  394.  
  395.              </div>
  396.              <div class="change" id="trac-change-2-1384666928909687">
  397.                
  398.  <h3 class="change">
  399.    <span class="threading">
  400.      <span id="comment:2" class="cnum">
  401.    <a href="#comment:2">#2</a>
  402.  </span>
  403.    </span>
  404.        <span class="avatar">
  405.          <span class="username-line"><a href="https://profiles.wordpress.org/johnjamesjacoby" class="profile-link">
  406.            <img src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="johnjamesjacoby" data-nicename="johnjamesjacoby"><span class="trac-author">johnjamesjacoby</span></span></a></span>
  407.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-17T05%3A42%3A08Z&amp;precision=second" title="See timeline at 11/17/2013 05:42:08 AM">11 years</a> ago</span>
  408.        </span>
  409.    <div class="trac-ticket-buttons">
  410.    </div>
  411.  </h3>
  412.  <div class="trac-ticket-buttons"></div>
  413.    <div class="comment searchable">
  414.      <p>
  415. Can you include an example of the new WP_Query you're calling in your custom function?<br />
  416. </p>
  417.  
  418.    </div>
  419.  
  420.              </div>
  421.              <div class="change" id="trac-change-3-1384684486889167">
  422.                
  423.  <h3 class="change">
  424.    <span class="threading">
  425.      <span id="comment:3" class="cnum">
  426.    <a href="#comment:3">#3</a>
  427.  </span>
  428.    </span>
  429.        <span class="avatar">
  430.          <span class="username-line"><a href="https://profiles.wordpress.org/unsalkorkmaz" class="profile-link">
  431.            <img src="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="unsalkorkmaz" data-nicename="unsalkorkmaz"><span class="trac-author">unsalkorkmaz</span></span></a></span>
  432.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-17T10%3A34%3A46Z&amp;precision=second" title="See timeline at 11/17/2013 10:34:46 AM">11 years</a> ago</span>
  433.        </span>
  434.    <div class="trac-ticket-buttons">
  435.    </div>
  436.  </h3>
  437.  <div class="trac-ticket-buttons"></div>
  438.    <div class="comment searchable">
  439.      <p>
  440. My query is:<br />
  441. </p>
  442. <pre class="wiki">new WP_Query(array(
  443. 'post_type' =&gt; apply_filters( 'firmasite_pre_get_posts_ekle', array( 'post', 'page' )),
  444. 'post__in' =&gt; $posts,
  445. 'posts_per_page' =&gt; -1,
  446. 'ignore_sticky_posts' =&gt; 1,
  447. 'orderby' =&gt; 'post__in',
  448. ));
  449. </pre><p>
  450. Its a part of function that helps users to link other contents in replies or topic like this:<br />
  451. <a class="ext-link" href="http://theme.firmasite.com/support/topic/im-lost/page/2/#post-1443"><span class="icon">​</span>http://theme.firmasite.com/support/topic/im-lost/page/2/#post-1443</a><br />
  452. </p>
  453. <p>
  454. (Btw, I can send you my theme so you can test it if you want. You can easily add content blocks to topics, replies in bbpress like this: <a class="ext-link" href="http://base.theme.firmasite.com/forums/topic/example-topic/"><span class="icon">​</span>http://base.theme.firmasite.com/forums/topic/example-topic/</a> )<br />
  455. </p>
  456.  
  457.    </div>
  458.  
  459.              </div>
  460.              <div class="change" id="trac-change-4-1385213771605900">
  461.                
  462.  <h3 class="change">
  463.    <span class="threading">
  464.      <span id="comment:4" class="cnum">
  465.    <a href="#comment:4">#4</a>
  466.  </span>
  467.    </span>
  468.        <span class="avatar">
  469.          <span class="username-line"><a href="https://profiles.wordpress.org/johnjamesjacoby" class="profile-link">
  470.            <img src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="johnjamesjacoby" data-nicename="johnjamesjacoby"><span class="trac-author">johnjamesjacoby</span></span></a></span>
  471.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-23T13%3A36%3A11Z&amp;precision=second" title="See timeline at 11/23/2013 01:36:11 PM">11 years</a> ago</span>
  472.        </span>
  473.    <div class="trac-ticket-buttons">
  474.    </div>
  475.  </h3>
  476.  <div class="trac-ticket-buttons"></div>
  477.  <ul class="changes">
  478.    <li class="trac-field-component">
  479.      <strong class="trac-field-component">Component</strong>
  480.        changed from <em>General</em> to <em>Forums</em>
  481.    </li><li class="trac-field-keywords">
  482.      <strong class="trac-field-keywords">Keywords</strong>
  483.        <em>needs-testing</em> <em>needs-patch</em> added
  484.    </li><li class="trac-field-milestone">
  485.      <strong class="trac-field-milestone">Milestone</strong>
  486.        changed from <em>Awaiting Review</em> to <em>2.5</em>
  487.    </li>
  488.  </ul>
  489.    <div class="comment searchable">
  490.      <p>
  491. Thanks. I'll take a look in the next few days.<br />
  492. </p>
  493. <p>
  494. Moving to 2.5 to investigate.<br />
  495. </p>
  496.  
  497.    </div>
  498.  
  499.              </div>
  500.              <div class="change" id="trac-change-5-1385349904214766">
  501.                
  502.  <h3 class="change">
  503.    <span class="threading">
  504.      <span id="comment:5" class="cnum">
  505.    <a href="#comment:5">#5</a>
  506.  </span>
  507.    </span>
  508.        <span class="avatar">
  509.          <span class="username-line"><a href="https://profiles.wordpress.org/johnjamesjacoby" class="profile-link">
  510.            <img src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="johnjamesjacoby" data-nicename="johnjamesjacoby"><span class="trac-author">johnjamesjacoby</span></span></a></span>
  511.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-25T03%3A25%3A04Z&amp;precision=second" title="See timeline at 11/25/2013 03:25:04 AM">11 years</a> ago</span>
  512.        </span>
  513.    <div class="trac-ticket-buttons">
  514.    </div>
  515.  </h3>
  516.  <div class="trac-ticket-buttons"></div>
  517.  <ul class="changes">
  518.    <li class="trac-field-milestone">
  519.      <strong class="trac-field-milestone">Milestone</strong>
  520.        changed from <em>2.5</em> to <em>2.6</em>
  521.    </li>
  522.  </ul>
  523.    <div class="comment searchable">
  524.      <p>
  525. I'm not able to duplicate this on the latest trunk.<br />
  526. </p>
  527. <p>
  528. Moving this to 2.6 so we can investigate after 2.5 is released.<br />
  529. </p>
  530.  
  531.    </div>
  532.  
  533.              </div>
  534.              <div class="change" id="trac-change-6-1385433354301798">
  535.                
  536.  <h3 class="change">
  537.    <span class="threading">
  538.      <span id="comment:6" class="cnum">
  539.    <a href="#comment:6">#6</a>
  540.  </span>
  541.    </span>
  542.        <span class="avatar">
  543.          <span class="username-line"><a href="https://profiles.wordpress.org/unsalkorkmaz" class="profile-link">
  544.            <img src="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=unsalkorkmaz&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="unsalkorkmaz" data-nicename="unsalkorkmaz"><span class="trac-author">unsalkorkmaz</span></span></a></span>
  545.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-26T02%3A35%3A54Z&amp;precision=second" title="See timeline at 11/26/2013 02:35:54 AM">11 years</a> ago</span>
  546.        </span>
  547.    <div class="trac-ticket-buttons">
  548.    </div>
  549.  </h3>
  550.  <div class="trac-ticket-buttons"></div>
  551.    <div class="comment searchable">
  552.      <p>
  553. @JJJ,<br />
  554. I found it. Here try this:<br />
  555. </p>
  556. <p>
  557. 1) Create 1 private forum<br />
  558. 2) Add this code to functions.php or in a plugin/mu-plugin:<br />
  559. </p>
  560. <pre class="wiki">  add_action('after_setup_theme', "firmasite_example_query" );
  561.  function firmasite_example_query() {
  562.  
  563. $testing = new WP_Query( array(
  564. 'post_type' =&gt; array( 'post', 'page', 'topic' ),
  565. 'showposts' =&gt; 9,
  566. 'ignore_sticky_posts' =&gt; 1
  567. ));
  568. print_r($testing);
  569.  }
  570. </pre><p>
  571. 3) Check your site's any page (as someone except keymaster), you will see print of query which have this excluding for everyone except keymasters:<br />
  572. </p>
  573. <pre class="wiki">            [meta_query] =&gt; Array
  574.                (
  575.                    [0] =&gt; Array
  576.                        (
  577.                            [key] =&gt; _bbp_forum_id
  578.                            [value] =&gt; 1701
  579.                            [type] =&gt; numeric
  580.                            [compare] =&gt; !=
  581.                        )
  582.  
  583.                )
  584. </pre><p>
  585. If you exclude topic post type from query, query will change and work but if you want to include topic post type in query, it gets corrupted and not works for other post types.<br />
  586. </p>
  587.  
  588.    </div>
  589.  <div class="trac-lastedit ">
  590.    Last edited <a class="timeline" href="/timeline?from=2013-11-26T02%3A41%3A28Z&amp;precision=second" title="See timeline at 11/26/2013 02:41:28 AM">11 years ago</a>
  591.        by <span class="trac-author">unsalkorkmaz</span>
  592.      (<a href="/ticket/2471?cversion=1&amp;cnum_hist=6#comment:6">previous</a>)
  593.      (<a href="/ticket/2471?action=comment-diff&amp;cnum=6&amp;version=2">diff</a>)
  594.  </div>
  595.  
  596.              </div>
  597.              <div class="change" id="trac-change-7-1385453489615997">
  598.                
  599.  <h3 class="change">
  600.    <span class="threading">
  601.      <span id="comment:7" class="cnum">
  602.    <a href="#comment:7">#7</a>
  603.  </span>
  604.    </span>
  605.        <span class="avatar">
  606.          <span class="username-line"><a href="https://profiles.wordpress.org/alex-ye" class="profile-link">
  607.            <img src="https://wordpress.org/grav-redirect.php?user=alex-ye&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=alex-ye&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="alex-ye" data-nicename="alex-ye"><span class="trac-author">alex-ye</span></span></a></span>
  608.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2013-11-26T08%3A11%3A29Z&amp;precision=second" title="See timeline at 11/26/2013 08:11:29 AM">11 years</a> ago</span>
  609.        </span>
  610.    <div class="trac-ticket-buttons">
  611.    </div>
  612.  </h3>
  613.  <div class="trac-ticket-buttons"></div>
  614.  <ul class="changes">
  615.    <li class="trac-field-cc">
  616.      <strong class="trac-field-cc">Cc</strong>
  617.        <em>nashwan.doaqan@…</em> added
  618.    </li>
  619.  </ul>
  620.  
  621.              </div>
  622.              <div class="change" id="trac-change-8-1394050009165691">
  623.                
  624.  <h3 class="change">
  625.    <span class="threading">
  626.      <span id="comment:8" class="cnum">
  627.    <a href="#comment:8">#8</a>
  628.  </span>
  629.    </span>
  630.        <span class="avatar">
  631.          <span class="username-line"><a href="https://profiles.wordpress.org/johnjamesjacoby" class="profile-link">
  632.            <img src="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=48" srcset="https://wordpress.org/grav-redirect.php?user=johnjamesjacoby&amp;s=96 2x" height="48" width="48" alt="" /> @<span class="username" data-username="johnjamesjacoby" data-nicename="johnjamesjacoby"><span class="trac-author">johnjamesjacoby</span></span></a></span>
  633.            <br /><span class="time-ago"><a class="timeline" href="/timeline?from=2014-03-05T20%3A06%3A49Z&amp;precision=second" title="See timeline at 03/05/2014 08:06:49 PM">11 years</a> ago</span>
  634.        </span>
  635.    <div class="trac-ticket-buttons">
  636.    </div>
  637.  </h3>
  638.  <div class="trac-ticket-buttons"></div>
  639.  <ul class="changes">
  640.    <li class="trac-field-owner">
  641.      <strong class="trac-field-owner">Owner</strong>
  642.        set to <em>johnjamesjacoby</em>
  643.    </li><li class="trac-field-resolution">
  644.      <strong class="trac-field-resolution">Resolution</strong>
  645.        set to <em>fixed</em>
  646.    </li><li class="trac-field-status">
  647.      <strong class="trac-field-status">Status</strong>
  648.        changed from <em>new</em> to <em>closed</em>
  649.    </li>
  650.  </ul>
  651.    <div class="comment searchable">
  652.      <p>
  653. In <a class="changeset" href="/changeset/5312" title="Use 'array_diff()` rather than `array_intersect()` in ...">5312</a>:<br />
  654. Use <code>array_diff()</code> rather than <code>array_intersect()</code> in <code>bbp_pre_get_posts_normalize_forum_visibility()</code> to allow custom <code>post_type</code> queries (that still include forums/topics/replies) to pass through without hidden/private forum <code>meta_data</code> assistance. Fixes <a class="closed ticket" href="/ticket/2471" title="#2471: defect (bug): bbp_exclude_forum_ids function bugging custom WP_Query (closed: fixed)">#2471</a>.<br />
  655. </p>
  656.  
  657.    </div>
  658.  <div class="trac-lastedit ">
  659.    Last edited <a class="timeline" href="/timeline?from=2014-03-05T20%3A07%3A32Z&amp;precision=second" title="See timeline at 03/05/2014 08:07:32 PM">11 years ago</a>
  660.        by <span class="trac-author">johnjamesjacoby</span>
  661.      (<a href="/ticket/2471?cversion=1&amp;cnum_hist=8#comment:8">previous</a>)
  662.      (<a href="/ticket/2471?action=comment-diff&amp;cnum=8&amp;version=2">diff</a>)
  663.  </div>
  664.  
  665.              </div>
  666.          </div>
  667.        </div>
  668.      <div id="help"><strong>Note:</strong> See
  669.        <a href="/wiki/TracTickets">TracTickets</a> for help on using
  670.        tickets.</div>
  671.    </div>
  672.    <div id="altlinks">
  673.    <a class="preferences-link" href="/prefs">Trac UI Preferences</a>
  674.      <h3>Download in other formats:</h3>
  675.      <ul>
  676.        <li class="first">
  677.          <a rel="nofollow" href="/ticket/2471?format=csv" class="csv">Comma-delimited Text</a>
  678.        </li><li>
  679.          <a rel="nofollow" href="/ticket/2471?format=tab" class="tab">Tab-delimited Text</a>
  680.        </li><li class="last">
  681.          <a rel="nofollow" href="/ticket/2471?format=rss" class="rss">RSS Feed</a>
  682.        </li>
  683.      </ul>
  684. </div>
  685.    </div>
  686. <div id="footer">
  687. <div class="links">
  688. <p>
  689. See also:
  690. <a href="http://wordpress.org">WordPress.org</a> •
  691. <a href="http://bbpress.org">bbPress.org</a> •
  692. <a href="http://buddypress.org">BuddyPress.org</a> •
  693. <a href="http://ma.tt">Matt</a> •
  694. <a href="http://bbpress.org/feed/" title="RSS Feed for Articles">Blog RSS</a>
  695. </p>
  696. </div>
  697. <div class="details">
  698. <p>
  699. <a href="http://twitter.com/bbpress" class="twitter">Follow bbPress on Twitter</a> •
  700. <a href="http://bbpress.org/about/gpl/">GPL</a> •
  701. <a href="http://bbpress.org/contact/">Contact Us</a> •
  702. <a href="http://bbpress.org/terms/">Terms of Service</a>
  703. </p>
  704. </div>
  705. </div>
  706. <script>
  707. var wpTracCurrentUser = "anonymous";
  708. </script>
  709. <script src="https://s.w.org/style/js/navigation.min.js?20190128"></script>
  710. <script src="https://s.w.org/style/trac/jquery.caret.min.js?ver=2015-02-01"></script>
  711. <script src="https://s.w.org/style/trac/jquery.atwho.min.js?ver=1.0.1"></script>
  712. <script src="https://s.w.org/style/trac/wp-trac.js?220"></script>
  713. </body>
  714. </html>
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda