All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Create Custom page with custom domain

I'm new to WordPress and I've tried to Search for my problem but I don't know what should I search for! I have 5 pages called portfolio (multiple kinds of portfolio), all of them have the same ...
0
votes
2answers
16 views

How to stop a permalink redirecting to a page whit same slug but different permalink

I have this CPT that has this permalink http://example.com/area-cliente/colecciones/basicos/ and this other page http://example.com/basicos/ And going to http://example.com/area-cliente/...
1
vote
0answers
27 views

Assign same parrent Page to pages AND custom post types

I have a page, where I list our current free job positions, let's call it Career. In it's content all custom post types of type job_position are being displayed. For some specific reasons I need to ...
0
votes
1answer
22 views

Do not show child pages within a file page

I have a CPT created, in my CPT file page the father pages and daughter pages are shown. Books of science Book 1 Book 2 Books of science fiction Book 1 Book 2 In my case I don't want it to ...
0
votes
1answer
24 views

Disable Sidebar on certain pages

Good day! How do you disable/remove sidebars in certain pages? Do I need to install a plugin(what plugin)? Or should I do a custom code? Thanks.
0
votes
1answer
26 views

Cannot save pages after migration

Recently I've received a task from my clients to improve their company page. I've migrated the page to my VPS and made some modifications: added new content updated Wordpress updated plugins ...
0
votes
1answer
15 views

Displaying posts inside table having issues

I am trying to create a comparsion table like the attached image. But it was not working like in the image. for that i have done following code what i am getting is not like the image for example the ...
0
votes
1answer
225 views

the_content(); of custom post type treated as an array or object

I created a custom post type in the mu-plugins folder. function wpdocs_codex_book_init() { $labels = array( 'name' => _x( 'Books', 'Post type general name', '...
0
votes
1answer
178 views

Show posts from custom post type sorted by category/taxonomy on a one-pager/page

I'm working on a one-pager wp site for a festival (page: Home). This festival has 4 stages. I created a custom post type "artists" with custom taxonomy "stages" and entered the 4 names of the stages. ...
0
votes
0answers
26 views

Custom post types & Pages hierarchy - Error 404

I've defined two custom post types: Theme Fiche I've also 7 pages using a defined rubrique template: (template-rubrique.php) Both my Theme and Fiche have an ACF post-object field. The Theme ACF ...
0
votes
1answer
24 views

How to store queried custom data and use it in multiple pages?

<?php $contact = new WP_Query(array( 'post_type' => 'contact' // 'post_status' => 'publish' )); ...
0
votes
0answers
65 views

How to make “single post” permalink maintain it's sub-page structure

I have a custom post type called "Classes", and I have multiple sub-pages for my site for each different schools classes page (which loops through said custom post type) I.E http://www....
1
vote
1answer
25 views

Making a custom help center page

I am working now on a new WordPress theme and I want to make a help center system to allow users that will buy my theme do add helper articles. So my plan is: 1- Make a normal new page and create ...
0
votes
0answers
145 views

Allow Static Page Load Dynamic Child Pages

I am new to WordPress -- extreme wet behind the ears as you call it. Using these forums I walked my way through creating my own blank theme and custom templates. I am looking to take one of those ...
1
vote
1answer
19 views

How i can add 'N' page of 'N' pages under posts loop?

I want show number of current page and count of all pages, near my posts paginations. I am talking about this
1
vote
0answers
25 views

Share parent path between Custom Post Types and Pages?

Here's my situation: I have a custom post type I created called "professions" with three professions ("military", "firefighters", "law-enforcement"). I created a page single-professions.php to use ...
1
vote
0answers
164 views

No Permission to add new Page, Post or CPT with Admin role

After a server update, I got some problems on my website, running WordPress 4.9.2 I could not update WordPress version to 4.9.4, cause I was getting a message like this: Another update is ...
0
votes
1answer
37 views

How to manage a custom post type archive as a page?

Is there a way to manage a custom post type archive from the Page editing view? I need to retain a certain url structure (so I need the formal wp archive), but also to be able to add images and ...
0
votes
1answer
274 views

URL Rewrite - Page Archive

I'm trying to get a custom URL rewrite in place but having issues. I have a page called 'Programme' which uses a custom query to list a post type called 'event'. I'd like to pass a month and day ...
0
votes
2answers
73 views

Multiple pages per post (not pagination)

I'm making a movie database and need to have multiple pages per post: details, cast, recommendations, reviews (something like IMDb). I would prefer to not use any plugins if possible. I'm not new to ...
0
votes
1answer
402 views

Include images from pages in wp search.php results in default wp search

Is there a way to include page images in wp search? Like I want to search through my sites images on pages not in posts by caption/alt text and display them in the results page as thumbnails.
1
vote
2answers
40 views

create a template page for a post

i am new in wordpress and i am sorry for my english. May be my title is wrong. sorry for that. My question is like that. I have too many custom post types. I need some pages for a specific custom ...
0
votes
1answer
13 views

How to set the mainpage of a custom post type?

I just created a new custom post type to contain all the individual posts of the event im hosting. I want the slug for each post to be: myurl.co/conference/programitem I already got a page with the ...
1
vote
0answers
13 views

Static page determines as home, but it is not

I've registered post type with slug services, which means that all content will be under example.com/services. Than I decided to remove it, so I deleted this code from functions.php. Now when I ...
0
votes
2answers
35 views

WordPress Contents Migration

We have a WordPress based News Website... A few months back we started customizing the website (some changes in the Post and page layout and look) on a copy/Staging Website and also kept adding new ...
0
votes
1answer
107 views

Pros and cons of a custom page vs custom post type template file

Within my current setup, WordPress 4.6.1, I see the flexibility of creating a custom page and also a custom post type template file. I do a lot of custom web page development and build pages for a ...
0
votes
1answer
2k views

Check if admin is editing page or custom post type

I am creating pages and custom posts (portfolio, cases). I would like to include an external php file depending on which one the admin is editing, I tried to use codes in my functions.php but nothing ...
2
votes
1answer
607 views

Menu position (admin menu) of pages

Is there a method to change the menu position of the 'pages' post type? When registering new custom post types, you can enter an integer in menu_position but how do I do this for the preregistered ...
-1
votes
1answer
21 views

How do I hide single category post on my post page

<?php $query = new WP_Query( array( 'numberposts' => 6, 'offset' => 0 ) ); ?> <?php if ( $query->have_posts() ): ?> <?php while ( $query->have_posts() ): ?> ...
0
votes
1answer
48 views

Creating Slider in wordpress theme with custom post

Im trying to integrate an html template.It has a slider.Each of the slide contains 6 images.clicking on the image opens a modal,which contain details about the image.Currently im implementing this ...
0
votes
1answer
67 views

Render a Post or Page using the correct file

Assuming I have a post ID or object, how do I display it the way it would be displayed if accessed directly within WordPress? My main concern with this is that there are numerous ways to change the ...
0
votes
0answers
39 views

How can I make my CPT read from page-*post-type*.php?

I have a CPT created. I made a page that uses page-upcoming-games.php. I have a query written on there to pull posts from my CPT. The issue I'm having is I have no idea how to make the slug /upcoming-...
1
vote
2answers
850 views

Trying to edit the single page from a Custom Post

I have a custom post type where I can create pages in.("article.php") It automatically uses the template "single.php" when I create a page, although I want to change some things in it without ...
1
vote
1answer
37 views

Page vs Custom Post Types Differences/Issues

I started noticing issues last week when 4.5 was released and mistakenly believed that update caused an issue. In reality, I just happened to notice it for the first time around then because last week ...
0
votes
2answers
47 views

One Post with different content, depending on a Page

My goal is to make a user manual WP site for the web app that my company is selling. My issue is that the web app has some differences in functionality for different clients. For example, we have a ...
0
votes
1answer
325 views

Why does not this wp_redirect work in is_single()?

I have a custom post type (portfolio) and I have to redirect a certain page (of this custom post type) to another page. when I look at my custom post type page: So I wrote the code as follow to ...
0
votes
1answer
238 views

How to add a regular page under a custom post type?

I'm building a WordPress website that should have the following structure: Project A (project post type) About (regular page) Location (regular page) Partners (regular page) News (regular page) ...
1
vote
0answers
71 views

Show Custom Post Type meta boxes only on Page Edit

I've went through the laborious process of creating the CPT. I see it on the sidebar of my WP install, I can add new, save data, and on frontend I can output the data. Is it possible with WP to move ...
2
votes
1answer
48 views

'Pages' widget alternative for custom post types?

I want to make a menu from a hierarchical custom post type. There is a default WordPress widget called 'Pages' that give you list of all the pages preserving their hierarchy. Is there a way to use ...
1
vote
1answer
19 views

Why does my content disapear when I make a page to match an archive name?

I made a custom post type called 'education'. I have added several pages to it. When it was first created I could go to http://example.com/education/ and see the posts, but I wanted to edit the layout....
0
votes
2answers
41 views

Can I change my post type to anything and my site still work?

I'm working on an application using WP as my CMS. I was successfully creating new posts and working with them in my app. But I noticed when visitors went to the website they were being listed in the ...
1
vote
0answers
54 views

How to use Custom Page Templates for hierarchical Custom Post Type

I added custom post type to my website. function any_posttype() { register_post_type( 'any', array( 'labels' => array( 'name' => __( 'Any' )...
0
votes
0answers
15 views

Cannot use pages created on WP

I am quite new to WP and I have recently taken over a development project of a page that I really don't understand quite well due to the weird options that the previous developer took. Unfortunately I ...
0
votes
1answer
71 views

Use the page picker from wordpress menu creation page

Is it possible to use the page picker from the menu creation page on other pages in admin mode? (This thing: ) I am creation a custom page type that will show specific pages in a list, and to ...
0
votes
0answers
56 views

Different post types arranged on one page

Lets say I have a wp-site with three pages: "Home", "Project" and "About". "Home" and "About" are static pages, and "Project" has sub-pages. I want to add content to the sub-pages, in form of posts, ...
0
votes
1answer
121 views

Exclude Custom Post Type & Pages From Auto-Tag Function

I am happily using this bit of code to auto-tag posts by author (thank you again cybmeta): add_action( 'save_post', 'add_authors_name'); function add_authors_name( $post_id ) { $post = get_post( $...
0
votes
1answer
2k views

Highlight specific menu item when custom post is page

I know that this question was asked many times, but I did not find a really good solution for my problem: I have a custom post type "event" with some categories like "lecture". For each category, I ...
5
votes
3answers
1k views

Custom Post Type as Page parent

So there are a million snippets for how to get pages as parents of custom post types. However, the reverse seems to be questionable. One would think, since everything in WordPress is technically a "...
0
votes
0answers
113 views

How to display data with pagaination on backend?

I am new with WordPress development so I have no idea how to do this functionality with WordPress. I got one task to display some data from database and have to display records with pagination(Just ...
0
votes
3answers
297 views

Custom Posts on Different Pages

So first off let me start off saying I'm new to WordPress development. I know HTML/CSS/JS like the back of my hand, but PHP and it's functions are new. Anyway. My problem may be simple, so here goes: ...