Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Pages are static, timeless content that are unique from the regular blog chronology.
2
votes
Disable Attachment Pages Completely
Changes are possible
via CLI: wp option set wp_attachment_pages_enabled 0|1
by visiting /wp-admin/options.php
through a small plugin
When this option is set to 0:
attachment pages no longer appear in … URLs redirect to their original files for logged in users
sitemaps/REST API endpoints etc use the original uploads URL
More details at https://make.wordpress.org/core/2023/10/16/changes-to-attachment-pages …
1
vote
No full page reload when navigating from page A to page B: is this possible with Wordpress?
This isn't something WordPress provides at the moment, "PJAX" is a general term and technology that has lots of implementations and tradeoffs, similar to how there is no one way to do your CSS.
There …
2
votes
Accepted
Why am I getting a different filename? And how does WordPress load singular.php for both Pag...
This is because you did not put singular.php in the URL, and if you did it wouldn't make any sense. Remember, WordPress loads the template, not the other way round, your mental model of how this works …
0
votes
Cover block always has margin
Use the cover block instead, the group block isn't necessary, and will have padding if it's given a background colour.
1
vote
Accepted
How do I attach a page to a category similar to how we attach media to a post?
No, media is attached to posts/pages using the post_parent column. This works because media is actually a post of type attachment in the database. …
1
vote
load common thank you template with different content for different pages
Create 25 child pages in the admin area and set them to use your template, then update the content for each page to match its parent page …
0
votes
Accepted
Dash after page title
You can't edit them, and they're not notes stored on a post
If you set a page in settings as the front page, Front page will be shown so it's easier to identify that page
The same is true if you choo …
0
votes
Plugin frontend page design irrespective of the theme used
I don't know which CSS styles/classes can be used.
You can't know this, not without knowing which plugins and themes there are installed. Prefix your classes so they're unique and it becomes a non-i …
0
votes
Run plugins only on certain pages
I want to load content from another table into wp_posts and then show it as a normal page. What solution do you recommend.
If that's your goal, then use shortcodes!
For example:
// PHP code
add …
0
votes
How to change default home link title?
For some reason this code has been added:
<h1 class="entry-title"><?php echo the_title(); ?></h1>
the_title will display the current posts title, you should replace this with what you actually wan …
0
votes
Insert page content into another page with a changed variable
There's a fundamental problem in your code, and one that suggests you're doing something very dangerous in your code.
Given this code:
$id = 216;
$p = get_page($id);
echo apply_filters('the_content' …
2
votes
How do I publish only one page to production after making changes on staging?
No, not unless you push the change manually.
More specifically, WordPress has no concept of production/preprod/etc or of pushing/pulling. These features are always implemented by hosts or custom soft …
1
vote
Parent page shows no child content
I just installed a fresh copy of Wordpress and tried to create one parent page
Pages are just pages, there's nothing special about parent pages, and it's not a term normally used
but the page … In WordPress people don't think of pages as parents, but they think of pages as children/sub-pages. …
2
votes
Wordpress pages creation work distribution & then combining - Localhost XAMPP
(since all start from the same duplicator backup, their pages will have identical ids)
No, the page IDs would get recreated with new values on import
Will there be conflict arising to page data connected …
1
vote
Accepted
Network Plugin Creating Pages for Different Subdomains
Additionally, the plugin will run on all sites, so if your code worked the way you think it does, and you have 5 sites, you'd get 5 duplicate pages. … So there are a few things to note:
Don't create pages on init or admin_init
Create the pages on site creation or plugin activation
Only create the page when you're on the site you want to create the …