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
13 views

How to add page category slug to base url

I use register_taxonomy_for_object_type( 'category', 'page' ); to add a taxonomy to the Page, but the url doesn't show the page's category slug. So is there any way to display the slug of the current ...
0 votes
0 answers
18 views

how to add a .accdb file to your wordpress website

I have a .accdb file that my employer would like to encrypt to put on our website so that the file can be accessed from anywhere and the employees that have access can update the access database. I ...
  • 1
1 vote
1 answer
65 views

Can't create new pages in wordpress

I have ran a php code to remove some pages of the database, the code worked fine and i have left with the optmised pages i needed. However, now i can’t create new pages at all. This happened with 2 ...
0 votes
0 answers
15 views

Why is a page shown with 'hidden' next to the name in the list of pages if the page is set to public?

Basically the question is in the title. I have a few pages where the pages are public and linked to from other pages but in the list of pages it shows hidden. But they are not in the list of hidden ...
0 votes
1 answer
15 views

How to change the default location where new post gets stored?

Traditionally, in WordPress after we write a new post it is stored in the location (URL) as followed: www.mysite.com / best-headphones-of-2023 But what if we want to store that new post after one more ...
0 votes
0 answers
10 views

May I know where to edit the tax rate?

I'm newbie in Wordpress. Our company website using the shopper as theme. But where can I find this part and change it?
0 votes
2 answers
43 views

Create a page for each database table entries

I am creating a job board website(it is a part of the website). I have a JobOffer class with some rows in the database(added with it's form...). My problem now is to have a page for each of these ...
0 votes
1 answer
17 views

How to remove slug from CPT correctly?

Im trying to remove slug from my Custom Post Types. I've added 'rewrite' => array( 'slug' => '/' ) and based on this post https://wordpress.stackexchange.com/a/144356/116847 I've added: ...
  • 141
0 votes
0 answers
26 views

Fresh Wordpress installation not able to simply show page content

My first Wordpress installation, it is version 6.1.1. My goal is just to have simple static pages. Even if I try to see the content of the pre-installed dummy "Sample Page" (/?page_id=2), it ...
  • 101
0 votes
1 answer
25 views

I reached halfway through a WordPress tutorial to find out I began wrong for a new comer to WP

Maybe this is not a code specific question, but rather a simple and important question for a new-comer to WordPress. Please guys begging to not downvote it. So I was following a very good tutorial ...
0 votes
0 answers
10 views

Control page access based on User Meta data?

I want to control access to pages (and menus) based on whether the viewer has a value in a user meta data field. I've made a plugin that securely receives viewers from another private system where ...
0 votes
0 answers
26 views

Create new page without menu in custom wordpress plugin

I am creating a custom WordPress plugin. I am writing all HTML by yourself. I don't use WP_List_Table class etc. When I create new page using add_submenu_page method, this page appears in menu. I don'...
0 votes
2 answers
52 views

How to get a list of pages (not posts) with specific tags?

I am using the Pages with category and tag plugin to assign tags and categories to pages. And now I would like to retrieve a list of items with specific tags associated with a page and can’t seem to ...
0 votes
0 answers
29 views

How to access the page without registering in wordpress

I have an issue with WordPress. I have the below code and I am getting into the admin menu: public function Create_Menu() { add_menu_page("demoset", "Demoset",...
0 votes
0 answers
36 views

Wordpress Plugin and other pages not opening

WordPress dashboard is open but the Plugin and other pages are not opening. It's loading but not open. Below I attached the screenshot.
0 votes
0 answers
30 views

Meta box not displaying on the plugin page

I am working on a plugin and I am creating a meta box on my page using the below code but it's not displaying anything. Any idea where is the issue with my code? class bt_dashboard { function ...
1 vote
1 answer
45 views

Dashboard show only published pages instead of all pages

Is there a way to view only the published pages instead of all the pages on the wordpress dashboard? I almost never need to use the drafts, and I would like to be able to get to my published pages ...
0 votes
0 answers
11 views

How to view front-end of Wordpress website, using Atom?

I have the wp-content etc files of my Wordpress website and I would like to see view the front-end of the website using Atom on my local host. The website developer that I use has access to the host, ...
  • 3
0 votes
0 answers
170 views

PHP warning $post->ID is null

I've been having some difficulty with the following error, and my PHP skills are pretty non-existent. Whenever I try to create a new page, I get the following error: PHP Warning: Attempt to read ...
0 votes
0 answers
15 views

All pages duplicated like a mirror with critical errors

My website is showing all pages twice and gives me critical errors when trying to edit anything or duplicate pages. Here are some key remarks: The pages counter of the pages list is wrong, showing 72 ...
0 votes
0 answers
25 views

Using a Page Template Not in Theme

My plugin creates (on demand via a 'create template' button) a page template that is stored in uploads/plugin-name folder (so it will survive a plugin update). The plugin also creates (again on demand)...
0 votes
0 answers
42 views

Attachement title in wpallimport

When importing the attachments (documents) using wpallimport plugin, it uses the filename as the title, but I want specific that it use "custom" title which is defined. This is piece of code ...
  • 1
0 votes
1 answer
16 views

Change the environment for creating a WordPress page

I tried WordPress this time, and the YouTube screen and my page development environment are very different. How do I set it up like the second screen?
0 votes
0 answers
7 views

Add a page to a subscribers account

Would like to add an Authors page to each subscribers account 'automatically' that they could update daily, and could be viewed, along with their profile by other subscribers.
0 votes
1 answer
46 views

How can I use wp_after_insert_post with $current_screen?

I'd like to call add_action( 'wp_after_insert_post' on particular screens. I'm currently checking the page like so followed by calling the wp_after_insert_post hook. It doesn't seem to fire but does ...
  • 181
0 votes
1 answer
13 views

How can I make a search term redirect to a page

I'd like users to enter a unique number such as "756463" and it take them to a specific page. How can this be done please?
1 vote
1 answer
18 views

Problems with draft website pages

I set up all the pages for my website (set as public & DRAFT) (https://9v7.961.myftpupload.com/?page_id=50) - BUT - lots of stuff not working (menu shows no pages, cannot link to Posts, custom ...
  • 11
0 votes
0 answers
21 views

hello can you advise how to fix the error?

GET https://marketshop.ge/wp-admin/load-styles.php?c=1&dir=ltr&load%5Bchunk_0%5D=dashicons,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,...
0 votes
0 answers
17 views

Update title field while listing wordpress page titles in Elementor selector

I can get wordpress page list to elementor selector. I can get the pages as a list, but the title field remains as the page id. can someone help $options = array(); $pages = get_pages(array( )); ...
0 votes
0 answers
11 views

My website is generating weired url parameters of paginated pages

i have a website example.com, but i redirected its home page to my static post right. so when i type url example.com/page/1, this will lead to home post page, same goes with /page/2, 3, 4 so on.... ...
0 votes
0 answers
12 views

wordpress category Description not allowed <script> tag

I want to add FAQ script from category description edditor but after I add code and update the page, edditor autoaticly removed the code. Here is the code: <script type="application/ld+json&...
0 votes
1 answer
27 views

How do you add a featured image to a page (not post)?

There's no "add featured image" in the settings section in a page I created. On the other hand, a similar blogpost I created has this setting. I went over some websites which told me that I ...
1 vote
1 answer
30 views

How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount

I'm looking to write a little function that counts how many pages the user has clicked through in this section. When it gets to a certain amount, I want to prompt them to log in and prevent them from ...
0 votes
0 answers
11 views

Can I restore restore content from old Worpress site to a new Worpress site from an archive

I managed a now defunct Wordpress site (www.wp_old)several years ago that I still have complete archive of. It was created using Updraft Plus. I recently configured a development server, and have ...
  • 1
0 votes
0 answers
10 views

Elementor Combined all Sections into 1 Text Editor

I am hoping someone might be able to help me with this. I used Elementor to edit my front page, which was great because it was nicely organized with sections and content and everything. Now I just ...
0 votes
0 answers
18 views

Set parent page based on custom metabox value

I have been working on a code for days already. What I am trying to achieve is I want to assign/set parent page if the value of custom metabox is this. Code for adding my own metabox to the page: ...
0 votes
0 answers
22 views

Display the output from Custom User Fields from a Wordpress user profile on a Wordpress Custom Page

I created Custom User Fields on a User Profile Using this tutorial. How do I add a field on the Users profile? For example, country, age etc. I created three custom fields with the names: "ID&...
0 votes
1 answer
63 views

Add string to page title if post in specific category

Can someone please help me add a string to WP page title depending on category of a post ? I did this with post title (code below) however I want to extend it to page title. function recipe_titles ($...
0 votes
1 answer
25 views

Wordpress rewrite rule for specific page and second parametr doesnt work

I have a link like this: https://example.com/page-test/?v=p300 and I created rewrite rule to point new url: https://example.com/page-test/p300/ but it doesnt work. Just there is redirect to correct ...
0 votes
0 answers
8 views

products category page editing

My Admin bar doesn't show the "Edit Page" or "Edit with Elementor" button (but only "Edit Category") on the live website pages of the products categories. How can I edit ...
  • 1
0 votes
1 answer
9 views

Separate blog and reviews categories

I created a review website recently where I write website and product reviews.I intend to write blog posts too on my website. I don't want to create subdomain or separate blog page.Both review posts ...
0 votes
1 answer
30 views

Creating a redirect option for current page url

I am running a multisite network with around 8 websites. Currently, some sites have more content than others(for example, mysite.com/uk and mysite.com/dk have more posts). What I am trying to achieve ...
0 votes
0 answers
24 views

How do I make the product image smaller on a WooCommerce product page?

The template in WooCommerce for product pages makes my product images huge. I have a portrait-style picture of a book cover on each product page. Is there any way to make the image smaller, not ...
0 votes
0 answers
31 views

Custom plugin places html head content in body

I'm currently working on a plugin. I have to render a lot of html on a specific page. I've placed that piece of code in the plugin it's core file, like so: add_filter('the_content', '...
0 votes
1 answer
30 views

Hide Status Option From WordPress Publish Metabox and Rename Published on:

I want to hide Status option on publishbox and rename Published on to Date Created for Custom post post_type like you see in red on the below picture.
0 votes
0 answers
21 views

"Can't update in WordPress"

WordPress changes can't showing. WordPress version: 5.5.3 Node version: 14.19.3 PHP version: PHP 7.4.29 npm version: 6.14.17 There is a website under development in WordPress. I edited the page in ...
  • 1
0 votes
1 answer
22 views

Create page (not the post type) dynamically

I'm working on a custom plugin where the user/customer will be purchasing a ticket (it'll be a woo product) to take a quiz and win some prize... So suppose the URL of a product/quiz would be like ...
  • 127
0 votes
0 answers
41 views

Embedding Password Protected (Private) "Blog Posts" BLOCK that shows Images and Excerpts on Password Protected Page (not the home page)

My request is almost identical to that of the Private Post BUT Public excerpt on Homepage thread (similar use), with exception to this request being about a page that isn't set as the home page (...
0 votes
0 answers
14 views

Indenting within a blockquote

I’m trying to further indent text within blockquotes, but I’m not sure how to do that. It’s not letting me add bullet points or other forms of indentation. Specifically, I'd like the sentences ...
0 votes
0 answers
21 views

Change displayed "page name" to distinguish multiple pages with the same title

I have multiple thank-you pages, depending of if they completed an action in full or just partially. But the title "¡Hey, felicidades! ❤️😀" is set the same to both pages (the only change is ...

1
2 3 4 5
51