Questions tagged [pages]

Pages are static, timeless content that are unique from the regular blog chronology.

Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

How to use category slug with a regular page

To make better looking category pages in my sites, I'm looking for a way to show the content of a regular page on the permalink /category/name. How can I achieve that ? Thanks
0 votes
1 answer
107 views

How do I disable the built-in editor and automatically configure the properties of new pages?

I use a Builder plugin on the site. Members are editors and can create their own page. I want to disable Gutenberg so that they can only edit pages with Buldir. I would also disable the properties of ...
  • 3
0 votes
0 answers
22 views

Page not visible in 'All pages' after being added through PHP

I'm adding some pages pragmatically as a subpage. This all works well on a test website in 1 locale. However, on the live website we have WPML with 2 locales. When adding them there, these pages DO ...
  • 53
0 votes
0 answers
20 views

How to permanently show Word Counter on Create/Edit Page. Wordpress5.9.3

Hi everyone I'm newbie in Wordpress coding so please guide me as a newbie.. I want to show Permanent word counter on Page Create. any help would be really appreciated thanks
  • 1
0 votes
1 answer
18 views

How to assign php file(template) to several pages with same prefix page name/slug

Can I assign WP php file (specific template) to several pages with same prefix name/slug using (if is_page(){}) ? If it's possible it could be useful. Is there a php function to do like css selector : ...
  • 11
0 votes
0 answers
43 views

Next and Previous Page links based on 'Order' attribute

I'm trying to add Next and Previous links to my site Pages (not Posts) to navigate based on the 'Order' information. I copied some code from the Codex (https://codex.wordpress.org/...
  • 1
0 votes
0 answers
14 views

Displaying page content from plugin, inside exising empty WP page

Old php developer here, very.. very new to WP, so be kind. I am building my first WP Plugin. I have this in the plugin central file (the one that is /plugins/my_plugin/my_plugin.php): // Setup the ...
0 votes
0 answers
9 views

Selector for page to set up scrolling plugin

I'm trying to set up infinite scrolling for pages on my site, using the Catch plugin. It asks for an item selector. The default is article.status-publish. I'm guessing that if I can figure out what ...
0 votes
1 answer
46 views

How Do I Redirect Wordpress Pages but not posts?

I have a client that changed jobs. He wants to redirect all pages on the wordpress site to a specific page on that site. But he also wants to keep all the SEO from the blog posts. So I need all the ...
0 votes
0 answers
17 views

Images not uploading on product page of woocommercr

Images on showing on product page and also on all product list. Product image not showing enter image description here
0 votes
1 answer
96 views

Automatically add images to a menu

I am calling a menu into a page, but I want to add images next to the title of the menu items. I have this code: <ol> <?php $navMenu = wp_get_nav_menu_items(2096); /*/Pass Nav Menu_id or ...
  • 167
0 votes
0 answers
13 views

How do I structure my permalinks in Wordpress?

I am using wordpress and all I want to do is make the URL appear in the form where, Blogs is mentioned and then the blogname. But I want this structure only when someone visits blogs page. The blogs ...
  • 1
0 votes
0 answers
24 views

Page Slug Won’t Change - Can’t Edit Archive Page With Slug or Reassign Slug

I took over a website that was developed by someone else and have rebuilt it to function in Elementor. Everything works great, except for one Archive page with the slug “our-projects” that I can’t ...
  • 1
0 votes
0 answers
9 views

display specific category when website loads

I have a website with WordPress and I want to load a specific category when the page loads. I have not tried it. Will it create problems or error if I change it.
0 votes
1 answer
27 views

Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)

I installed latest XAMPP & extracted latest WordPress to this path: C:\xampp\htdocs I activated default theme: Active: Twenty Twenty I created these: 1 Page called test: http://localhost:82/...
0 votes
0 answers
30 views

How to set a 'page' as parent of a custom post type?

For various reasons, I would like to use a 'page' in preference to an archive page for one of our custom post types and have this be reflected in the permalink structure. I am struggling to find out ...
0 votes
0 answers
82 views

Cascading dropdown select search based on Parent Page & Child Page

How would I create a cascading dropdown select search where the first dropdown would host selected Parent Pages and the second to display the Child Pages of the selected Parent. When submit button is ...
  • 11
0 votes
0 answers
22 views

How to create archive page to add in menu

I have a menu like this below But I can't find the page. Is this a wordpress page or template located somewhere? And how can I create archive page?
0 votes
0 answers
105 views

Create multiple pages with tables from json file

I have this problem on Wordpress. I have a json file with a structure like this { "obj": [ "obj1": { "field1": "..", "field2&...
0 votes
1 answer
29 views

Load specific page when a custom URL is hit

I'm building a plugin which will basically build a knowledge base dynamically, by retrieving categories, articles, etc. from an external API where all documentation is being kept. I've added a few ...
1 vote
1 answer
191 views

Disable featured image

From the description of the plugin "Hide Featured Image": There are instances when one wants to show featured image on single post and hide it on another post. This plugin will allow you to ...
  • 113
0 votes
1 answer
12 views

WordPress Animation Adjustments

I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
0 votes
0 answers
17 views

How to make transition slider load before home page

I created a transition slider using these instructions on this web site: https://www.greengeeks.com/tutorials/transition-slider-wordpress/ Now I want to take the slider I created and use that as the ...
1 vote
0 answers
32 views

Serve specific "template" page at any URL that ends in its slug

Still new to WordPress, so please go easy on me. Goal: Prevent users of a specific role from viewing other custom post types made by users of same role. Intended solution: Modify the URL and redirect ...
0 votes
0 answers
23 views

I want to add another search box on posts page in dashboard

There is already a search box in wordpress dashboard for posts, products, pages etc. in their listing page. My client use wordpress admin with their phone so he requested another search box on top of ...
0 votes
1 answer
78 views

Cover block always has margin

I'm working on a website where I want to have some group blocks where I want to add some images of patterns to just make the website a bit nicer than just plain colors. I'm using a cover block to hold ...
  • 101
0 votes
1 answer
103 views

Website jumps to top when scrolling down

I have a problem with one of my customers pages. When I click a link on the website or when I refresh the page, it automatically jumps back to the top when I immediately start scrolling. If I wait for ...
0 votes
0 answers
32 views

How to backup just pages from my site, but not posts with other post_type values

I want to backup just pages from my site, but not posts with other post_type values, so my first question is – will this do the trick? enter cPanel phpMyAdmin filter the table wp_posts for post_type=...
  • 101
1 vote
1 answer
170 views

Change the slug of a particular page every x hours

Is it possible to rewrite the slug of a particular page (e.g. Page-ID 123) with a wordpress function? I found this somewhere but It doesnt work and I am also looking to simplify it as I just want to ...
  • 608
0 votes
0 answers
122 views

Permanently deleted posts still exist

So, I deleted multiple post of type page (sent them to trash, went to trash and permanently deleted them), but one of my functions didn't work like it was supposed to so I went and investigated, it ...
0 votes
2 answers
277 views

First archive page with a few posts

I'm looking for a way on how to display only a few posts on a first page of my archive. This is my archive template — page-archive.php, which I am using as a template to display all my posts/recipes: &...
-1 votes
1 answer
96 views

Wordpress pagination returns the same posts

I did search the other posts here related to this problem, and tried all of them in my case, but I can't seem to make it work (probably because I don't know enough code) Can you please help me with ...
  • 167
0 votes
0 answers
15 views

My worpress search page is showing no results

I want to display the publications searched for via searchform.php in the search.php page but it does not work ... The search is done well when I look at the url (ex: New World): http://localhost/?...
0 votes
0 answers
23 views

Create a List of Widgets, where each widget holds three attributes

i have a specific wordpress page, in which I want to add expandable items. So the item has a keyword and when I press it, it expands and more specific text will show up. The styling and setup of such ...
0 votes
1 answer
120 views

A function to get the content of a page

I have an Elementor page and I need to get the HTML and CSS output of it without the header and footer to use in an email plugin I am making. Is there a function in WordPress that can do this? I've ...
  • 121
0 votes
1 answer
30 views

Edit post & page option does not display on latest wordpress

I am not able to edit the WordPress default posts/pages from front-end. I have tried to deactivate all plugins, check/uncheck toolbar option(from profile) and also wp_footer() function in the file. ...
0 votes
1 answer
256 views

How to dynamically parse and transform post/page content before displaying it?

I have several posts where part of the displayed content will depend on several conditions. I am thinking on creating a custom html tag. Then, before displaying the post content, the conditions will ...
0 votes
1 answer
137 views

Show only pages you are author of

I am trying to only show pages that a user is the author of for any role other than administrator. The code below seems to put the site in an infinite loop and it ultimately dies. add_action( 'load-...
  • 105
0 votes
0 answers
36 views

Copy/paste local images not working in Wordpress

This is somehow frustrating. I am ussing the latest version of Wordpress I am running my webpage, and when I need to copy-paste an image from Internet into any of my posts/pages I have no problem. ...
0 votes
1 answer
328 views

Automatically redirect a page to a category that share the same slug

This question shows me how to redirect a category to a page that share the same slug, but how would I redirect a page to a category with the same slug? e.g. abc.com/slug ---> abc.com/category/sub/...
  • 976
0 votes
0 answers
51 views

Can't find the page that is using a slug

I am using Wordpress test site and working on a page where I can display Team members. At some point I was working on two Team pages at the same time, just to compare which style I liked more. Along ...
  • 1
0 votes
0 answers
42 views

Use get_pages() before another plugin modifies it

In my little plugin I am using get_pages() to get some specific pages. Important is the usage of "child_of" and a custom field key. $pages = get_pages([ 'child_of' => 206, //Gets ...
  • 1
0 votes
1 answer
50 views

How do I attach a page to a category similar to how we attach media to a post?

Is it possible/how do I to attach a page to a category similar to how we attach media to a post? ps. I'm not asking how to assign a category to a page. update: I need to attach a specific page ...
  • 976
0 votes
0 answers
24 views

Automatic duplicate/copy of post to a related page in WordPress

I have a website about introducing softwares and apps. I created pages and so menus (named by categories). I set my WordPress setting homepage to latest posts. I create posts and give them categories ...
  • 103
0 votes
1 answer
22 views

Create a loop on my pages with new "WP_Query"

I wanted to loop through these four pages. Basically I would like my loop create a "li" by "page_id". I just know this is from my "new WP_Query" which is not good. How ...
0 votes
1 answer
38 views

Bad pages redirection

I have a wordpress web site with only a private pages (can only be viewed by logged users) I use the below code in my theme functions.php to be redirected to login page each time a put the page URL on ...
  • 314
0 votes
1 answer
61 views

Block to Popup Page, on demand?

I have embedded HTML in a block which renders a Python console. What I want to do is to be able to pop-out the Block in a separate window. If that is not possible then may be a link that when I click ...
  • 101
0 votes
1 answer
22 views

On the list of Pages, clicking to Edit a particular page redirects to the list of trash

Here's the background. I created a page called "New Home Page" to eventually replace the original "Home" page. When I was ready, I renamed the original Home page to "Old Home&...
  • 169
2 votes
1 answer
216 views

Set a specific page as 404 - not found via my own plugin

I'm developing a plugin that create some pages and set a specific template for each of these pages. It creates a page in which it sets a template for 404 - not found, how can set this specifc page as ...
0 votes
0 answers
227 views

Is there a way to find all posts with Youtube video embedded?

Is there a way to search all posts and pages in my WordPress site and find those who have a Youtube video embedded in them? The reason to do that is I want to disable the wp-embed.min.js but before ...
  • 41

1
2
3 4 5
51