Repository navigation
Commit 320cf61
committed
Editor: Add
Add support for the `excludeCurrent` property in the Query Loop block's query. When this property is enabled, the post currently being viewed is excluded from the query results. This is useful for showing a list of related posts within a single post template, where the current post itself should not appear. If there is no current post, the query is left unchanged.
Developed in: #12016
Props westonruter, wildworks.
Fixes #65373.
git-svn-id: https://develop.svn.wordpress.org/trunk@62707 602fd350-edb4-49c9-b593-d223f7449a82excludeCurrent support to the Query Loop block.1 parent e533437 commit 320cf61
2 files changed
Lines changed: 38 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2704 | 2704 | | |
2705 | 2705 | | |
2706 | 2706 | | |
| 2707 | + | |
2707 | 2708 | | |
2708 | 2709 | | |
2709 | 2710 | | |
| |||
2749 | 2750 | | |
2750 | 2751 | | |
2751 | 2752 | | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
2752 | 2759 | | |
2753 | 2760 | | |
2754 | 2761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | | - | |
| 16 | + | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
837 | 835 | | |
838 | 836 | | |
839 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
840 | 868 | | |
841 | 869 | | |
842 | 870 | | |
| |||
0 commit comments