Questions tagged [pages]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
7 views

Weird issue with is_pages() with array

Does anybody know why this works: if ( is_page( array( 'home', 'contact' ) ) ) {} But this doesn’t: $pages = array( 'home', 'contact' ); if ( is_page( $pages ) ) {} Even when adding settype( $...
0
votes
0answers
16 views

Loading page on categories and subcategories url pages

I Have very limited wordpress knowledge and tried many methods but with no luck. I have categories and subcategories with url domain.com/news/sports/ of Custom Post Type. I want to display categories ...
0
votes
0answers
9 views

How can I make a similar Wordpress Website [closed]

I have installed a wordpress and I want to make it similar to the one on the domain http://electronics-tutorials.ws . I have tried many plugins and themes but I can't get it to be arranged similar to ...
0
votes
0answers
8 views

How to delete the box category in the footer of the page [closed]

I would like to delete the Category box in the footer of every page of the site (as .jpg below): how can I do it? my site thanks
0
votes
0answers
10 views

adding pages in underscores.me theme

I have a basic question. I am fairly new to WordPress and I have this task that I am asked to do. I have been asked to add pages (contact, about, portfolio, etc...) to the current WordPress site that ...
0
votes
0answers
19 views

WP noob question: designing a custom page

I'm asking a very noob question about sw design in WP: I'm not new to web development, but I'm quite new to WP. My client wants to make the usual WP Blog with some other pages describing it's business....
0
votes
0answers
8 views

Change page width in refined magazine/mag and news theme

I am using Mag and news theme, which is a child theme of Refined Magazine. On the admin page, there seems to be no option of changing the page width. I am capable of editing php files as well, but I ...
0
votes
1answer
21 views

Can I schedule my site to launch at a set time and date?

Or must a site be launched manually? I want my site, in honour of my late Uncle's WWII experiences, to launch at 11am on Nov 11th.
0
votes
0answers
13 views

Wordpress Frontend Page using Plugin

I'm trying to create a front-end page using the WordPress custom plugin where I want to create a custom registration page. I have created a boilerplate plugin, where I can only activate and deactivate ...
0
votes
1answer
17 views

how to display sidebar on pages in wordpress

I want to display custom field's content in the sidebar on specific pages in WordPress so can anyone have an idea about it then please share it with me. Thanks In Advance...
0
votes
0answers
8 views

Exclude a parent page with get_pages()

I have the following code: <?php $pages = get_pages('exclude=10'); ?> <?php foreach ( $pages as $page ) : ?> <?php echo $page->post_title; ?> <?php endforeach; ?> I ...
0
votes
0answers
13 views

jQuery Pjax page transition - initialise page after transition

some how my page design is distroyed after Jquery pjax transition. i use barba.js . onload everything i ok. but after transition page design is distroyed. in simple html website my transition work ...
0
votes
0answers
11 views

How to put shipping methods inside table at Woocommerce Checkout page

<table> <thead> <tr> <th>Shipping methods</th> <th>Price</th> <th>Total price </th> </tr> </thead> &...
0
votes
0answers
34 views

Different template parts when on different pages

I need to get different template parts when locating on different pages, for e.g. Homepage. <?php if (is_home()) { get_template_part( 'partials/hp-header' ) } else { get_template_part(...
0
votes
0answers
8 views

When admin select the value from the dropdown list , the new information is added to particular selected item and display on that page?

e.g if admin add information and select Bahria town from dropdown list then the information is added on the baheria town page .
0
votes
1answer
12 views

Attachment pages stealing page slugs

I'm working on remaking a big website with its upload folder already full of many gigabits of images. I just noticed a problem I never noticed with WordPress before: it seems to create attachment ...
0
votes
0answers
17 views

How do you run code on a specific page without missing the init hook?

The earliest that functions such as get_permalink or is_page are available is parse_query (afaik). Then I thought, ok, clearly, I can't say if( is_page('myPage') ) { add_action( 'init'... // because ...
0
votes
0answers
16 views

I want to embed mystream video in my wordpress site

I want to embed mystream videos in my wordpress site but when i paste the embed link in the editor, its say that they can't do that. Is there a way to do that?
0
votes
0answers
10 views

Changing Search Page Result URL

I want to change my search result page from: mywebsite.com/s=query to mywebsite.com/s=query&post_type=product. I have no clue how to do this though... could anyone kindly help? I'm not a coder and ...
1
vote
0answers
12 views

Check if Page Already Exists in Menu

I am creating a menu where pages are automatically assigned to it. However I need to check whether the page already exists in the menu before adding it. Currently I am using the following code: // ...
0
votes
1answer
22 views

How to get the Page Name of the current page?

On mobile, I want to display what page my users are on. I have 6 top pages at the moment. Home, Projects, Blog, Contact, Privacy Policy and Impressum. Both Projects and Blog have posts in them. ...
0
votes
0answers
5 views

Search in custom post type AND in pages with category

I have a search field that's searching in my custom post type bwps with a hidden input: <form class="search-form form-inline" action="<?php echo site_url('/'); ?>" method=&...
0
votes
1answer
25 views

How can I display tags as categories?

I'm using the "Pages with category and tag" plugin because my website uses individual long pages as posts. I would like to make a gallery of the past posts (sort of like an archive section), ...
0
votes
1answer
22 views

Change page name in admin list

One of my customer has many pages that have the same titles, although their content is different. They would like to be able to give them "admin titles" in order to differentiate them in the ...
0
votes
1answer
28 views

How to show 'tags' in 'Wordpress Pages' [not Posts]

I have found a way to have the ‘category’ the page is recorded against to display at the top of the ‘page’ (this is not a post but a WordPress ‘page’). I would also like to display the ‘tags’ that ...
0
votes
0answers
15 views

Create page via Form on Frontend

I have a requirement , where a user would want to create a WordPress page with 3 basic information as below . The user would add an audio file link. the user would add some text . The user would ...
0
votes
1answer
20 views

Category Page Displaying all Pages

My page here: https://blackfreedom.proquest.com/category/civil-rights-and-black-power-movements/activism/selma-demonstrations-and-marches/ is displaying all pages on the site, not just the ones that ...
0
votes
0answers
11 views

Static page not working on Wordpress dashboard, only latest posts showing

I am also facing a problem with my review site I have 2 websites with one WordPress hosting from GoDaddy my one site's static page is working but my new domain's static page still not working after ...
0
votes
0answers
20 views

Missing 'Page Attributes' in page edit

Im missing Page Attributes from page edit screen. I have searched and not found any solution. Anybody with some ideas?
0
votes
1answer
19 views

How to prevent WordPress from redirecting single page to prefixed category archive with same name?

I have been trying to solve this problem for hours. I would like to have a page with a simple slug (/blog) and a category term with the same name (/category/blog) exist on my site together at the same ...
0
votes
0answers
12 views

Wordpress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!

I have a permanent sticky post on my front page and have implemented the code (pasted below) into my functions.php file to stop it adding an extra post to my post count on the front page (it's a grid ...
0
votes
0answers
5 views

Page Title has a navy portion behind it blocking part of feature image

I am using the Full Width - Parallax Title as my Page Attributes and have selected a Feature Image. This works on all of my pages except for "About Us" which has the feature image and then a ...
0
votes
1answer
14 views

How to get custom page template being edited in gutenberg editor

I want to know custom page template name (the one chosen in page attributes - template) in PHP, before page opens in order to enqueue additional scripts according to chosen template. I know how to get ...
0
votes
0answers
14 views

How to add categories for pages only?

I have added this function in my functions.php file to show category option for wordpress pages. It works fine. function support_category_for_pages() { // Add category support to pages ...
0
votes
1answer
16 views

page-slug.php not working but only for specific slug

I'm trying to create a page called "Comics" with the slug "comics" to use as the main table of contents for my webcomic site. I've created a page-comics.php file, however when I ...
0
votes
0answers
13 views

Main Menu Appears But Sub Menu Does Not Appear

I have added the top menu code below as follows. Home page names are visible, but sub pages are not. How can I fix. $defaults = array( 'theme_location' => 'header-menu', ...
0
votes
0answers
26 views

Why does updating permalink structure only update posts and not pages?

This might sound like a stupid question but I've honestly looked everywhere. Currently my WP Page structure is {site-title}/{page-title}. This works fine, however I want to change the permalink ...
1
vote
0answers
17 views

How to delete page by deactivating plugin

register_activation_hook( __FILE__, 'myplugin_activate' ); function myplugin_activate() { //create a variable to specify the details of page $post = array( 'post_content' ...
0
votes
1answer
25 views

Create page template

I am completely new to working in Wordpress but have some skills in coding. My company has a website where we write about different publicly traded companies. I want to add company specific pages to ...
0
votes
1answer
13 views

Plugin frontend page design irrespective of the theme used

I am writing a WordPress plugin which will have some front-end pages including inputs, forms, buttons etc. The plugin should be usable with different themes. But I am confused or don't know how to ...
0
votes
0answers
14 views

How do you tie a database to a block?

I am rather new to wordpress, and need help tying a database to a block and get it to function like a search engine for a candidate.
0
votes
2answers
11 views

Change the size of the featured image for post?

Is there a way to change the size of featured images on posts? When I click on one of my blog posts, I can see it’s extremely large and inefficient. https://graduateinvestor.com
0
votes
2answers
3k views

Updated Wordpress, now getting errors on site

I just recently updated my Wordpress, theme, and plugins, and am now getting these two errors on top of the homepage and pages page. Deprecated: wp_make_content_images_responsive is deprecated since ...
0
votes
2answers
26 views

how to get a list of all top level pages

I am trying to figure out how to get a list of the permalinks for top-level pages only. My goal is to put them in a selection box on a form. I have spent a couple of hours searching here for an answer ...
0
votes
0answers
11 views

How to enable pages that have been hidden unless a user is logged in

I've inherited a Mutlisite Wordpress network (so I don't have all of the details around how it's been set up yet) that contains 3 sites. One site hides all pages from users unless they are logged in ...
1
vote
1answer
19 views

How to redirect a page to another?

On my website, I have following url structure: example.com/test/ example.com/test/a-page example.com/test/another-page How can I redirect all of the URLS that contains /test/ right after the domain ...
1
vote
0answers
71 views

WASM page in Wordpress website

I used emscripten to generate some html/js/wasm/data files and would like to add that as a page to my (Wordpress) website. Is this possible? If so, how?
0
votes
0answers
3 views

I have a HTML structured page which I want to link with a button on custom theme hompage. Which file should we write to do that?

In the image, there is a button called Schedule a Call. I have made a page with a form on it and I want to link the page to the button. Which file should I edit/create in my custom theme folder?
0
votes
0answers
22 views

How to write this wordpress code

The idea here is to share bulk WordPress posts between multisite blogs automatically. I have googled some tutorials and I know I can use save_post action hook, switch_to_blog and get_post() + ...
0
votes
1answer
32 views

How to show only homepage in google results instead of privacy, contact pages

When I search my website in google, all the pages and posts can see. I want to make only homepage visible in search results and remove other pages(privacy, contact etc). And also all the posts can ...

1
2 3 4 5
49