Tagged Questions
0
votes
0answers
5 views
Register custom post type categories to default categories [duplicate]
How to register custom post type categories to standard default wordpress categories?
0
votes
0answers
15 views
Create a generic post type and define its metadata via another one used for categorization
Ok, I would like to share with you an idea I had and ask you what do you think about it and possible drawbacks I'm not able to forsee.
I'm building a database for an association with many kind of ...
0
votes
1answer
119 views
Post visibility option to theme front-end for author to select?
Is it possible to present author with an option to select visibility of a post (public, private, password) on theme front-end post adding without messing with Wordpress core?
Any suggestions are ...
2
votes
2answers
50 views
Structure for projects and clients
I have a client who has requested a WP based portfolio where they will present their projects and clients, filtered by categories and tags. They also wish to filter all projects done for a particular ...
0
votes
0answers
28 views
Wrong permalinks for custom post type on multisite install
I'm working in a multisite instance of WP that is using subdirectories and am trying to add a custom post type to a child site.
I'm trying to get custom post permalinks that look like so:
...
0
votes
1answer
41 views
2 language CPT content
I'm working on a CPT Portfolio to present my job
I wish to be able to have it in 2 languages but I would prefer not to use an additional plugin since that is only 2 fields that would be in 2 language
...
0
votes
0answers
36 views
Trying to have A - Z on top for custom posts
Im currently using this code below which shows a letter than companies under that letter.. Im trying to have letters go across the top A - Z and once clicked it will show companies.. im using a custom ...
0
votes
1answer
63 views
How to list posts by term (custom taxonomy)
I created a custom post type (portfolio), with custom taxonomy (portfolio-category).
I created a template, this template lists all "portfolio" posts.
<?php while ( have_posts() ) : ...
0
votes
2answers
162 views
How to create a custom search for custom post type?
I have a search field for the blog posts, but I need an other for a custom post type. How can I create this custom search form with a different search result layout?
0
votes
2answers
21 views
Is There A Way To Add Another Field To Custom Post Type (Not Custom Field/Meta)?
Maybe I'm not getting the whole concept, but is there a way to modify a Custom Post Type so that it includes other 'fields' like a 'real' db table. I don't mean a Custom Field (get_meta)... I mean ...
-1
votes
1answer
73 views
How to use page template with custom query instead of archive-xxx.php?
I created a custom post type and I would like to list the posts. I choosed page template with custom query instead of the archive-xy.php to list the posts because the user would like to edit the ...
0
votes
1answer
111 views
Query Multiple Custom Post Types & Exclude a Taxonomy Term
I'm querying multiple custom posts types and I'd like to filter certain posts that are tagged with a specific taxonomy term.
The taxonomy is "content" and the term is "indy"
I'm using the the code ...
0
votes
1answer
50 views
What's the best way to show custom post types? With page template it's not perfect!
I created a custom post type with name career. I would like to know what's the best way to list the posts. I created a page template with a query inside, but the pager is invisible. I don't know ...
2
votes
1answer
22 views
Custom Taxonomy conditionals
So I have setup a custom post type 'products' and custom taxonomies / categories 'defence' 'law & enforcement' and 'Commercial'.
I have using the following conditional to set some specific css ...
0
votes
1answer
33 views
How to apply order on custom taxonomy and custom meta key on custom post type
Here is the code in am using
$arg= array(
'post_type' => 'vr_listing',
'tax_query' => array(
array(
'taxonomy' => 'vr_listing_status',
'field' => ...
1
vote
1answer
54 views
Permalink structure by Post Meta value
I have the following issue:
Two Custom Post Types, lets call them cpt1 and cpt2.
In cpt2, I have a custom meta box in which you can select a post from cpt1, its post ID is stored in a meta value ...
0
votes
1answer
54 views
How can i display on front page a movie that is atached in a post type
Im building a cinema site,
In post's i store the Movies
I have a post_type name "box-office" , this post type have 1-10 custom fields, with i can select the movies stored in post's.
locul_1 - is one ...
0
votes
1answer
265 views
Can a custom post type have a Parent Page?
I've seen a lot of posts out there in the Webiverse about assigning a page as a parent of a custom post type. After four hours I can't find a solution and need some help. I've create an "About" page ...
0
votes
1answer
53 views
How to keep a record of changes to a custom field?
I have a custom post type that hold real estate listings and I need to figure out a way to keep a record of the price of the property is listed for. For example a user lists a property for sale and ...
0
votes
1answer
105 views
Function to add custom HTML into head in custom post-type list page
How can I add custom HTML/PHP file into head where custom post-type list showing like this ?
Any Wordpress function can do this ? or I can only do by JS(jQuery) to append my custom content ?
0
votes
1answer
212 views
Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
Is wordpress capable of having hierarchical taxonomy and hierarchical custom post types in one permalink ?
I would like to do the following:
tax-1/tax-2/cpt-1/cpt-1-post/cpt-2/cpt-2-post/
in other ...
0
votes
0answers
26 views
Trying to have a different template for 2nd page of index. - can't get old solution to work? [closed]
I am trying to achieve the same goal as this guy... but i am having problems with the solution.
I have my main index and say soon as they click next to view older posts i'd like to use a completely ...
0
votes
1answer
133 views
Programmatically adding posts
I'm about to create parser which would be inserting new custom posts.
So, it's pretty simple
global $user_ID;
$new_post = array(
'post_title' => 'My New Post',
'post_content' => 'Lorem ...
0
votes
1answer
292 views
Edit the_content() function so to add a div wrapper
Currently my article is displayed like this:
<div class="post_modul border_b">
<div id="attachment_61891" class="wp-caption alignnone" style="width: 478px">
<img ...
0
votes
0answers
22 views
Hierarchical Custom Taxononmies slug issues [closed]
I have a custom post called "cursos" and the slug is 'servicios/cursos'. Then I created a custom taxonomy and the slug is 'servicios/cursos/tema'.
The taxonomy does not work but if I change the slug ...
0
votes
1answer
234 views
How to integrate video slide using custom post types?
currently i know how to make a jquery slider and pull images by get thumbnail . But is there any way to make a option (using custom post types/custom fields/meta boxes) to get a video by id and show ...
-1
votes
1answer
61 views
Change the behaviour of archive cpt category and single cpt by plugin, not by theme
I need to know: I have wrote at 60% one plugin, it works well in backend (some settings, some cpt, some custom fields... nothing special). It uses custom post type with custom fields.
For now I need ...
0
votes
2answers
174 views
How to produce a sub-page-system in Wordpress
I am currently new to Wordpress development and I am developing a custom theme with a few custom post types and custom functionality. For the most part, it was pretty easy to find the information I ...
2
votes
2answers
75 views
I need to add a custom “cover” to every new post — plugin or custom setup?
I'm creating a site that's basically like an online book, and every post is a chapter. Each chapter gets a customized, specially designed "cover" page that can't really be designed in the Wordpress ...
1
vote
1answer
580 views
How to Remove Certain Screen Options and Table Columns from post type in wp_list_table?
On the page where we list all posts made: example.domain.com/wp-admin/edit.php
There is a Screen Options tab in the upper right corner. Upon clicking this, a menu slides down. Contained within this ...
0
votes
1answer
432 views
How to sort posts in a custom post type by title in ascending order by default?
So I am using a custom post type to create a listing of businesses. Each post made, contains information about each business. The title of each post is the name of the business.
When I go to the menu ...
2
votes
1answer
360 views
Restrict custom post type to only site administrator role
How can I remove this custom post type from being shown in the dashboard for non admin users?
/* Add Websites Custom Post Type */
add_action( 'init', 'create_website_type' );
function ...
2
votes
2answers
56 views
Keep main articles and author blogs seprerate, News / Magazine like site
I am working on a project that requires a CNN like article structure, where there are main articles (published in a magazine 'volume/issue') and authors' blogs separate. The idea is to have official ...
2
votes
2answers
240 views
Post Ancestor and Child Post in Custom Post Type
Hierarchical structure of custom post type "Book" (for example).
When we are on Post 2-95, I want to know:
Does the post has this post ancestor(Post 1-31)?
Does it have child posts(Post 3-19, ...
-5
votes
1answer
281 views
What does this PHP function code mean? [closed]
Can someone please help me to understand each part of this code? Can you comment every line so I can understand and custom the code accordind to my purpose. Here is the link in pastebin:
class ...
0
votes
1answer
105 views
What is the best way to manage small blocks of content on my home page?
Excuse the newbie question.
I have a home page that has 2 sections on it. None of these sections are the 'blog' which is in another section of the site. I suppose I'm looking for another way of ...
1
vote
1answer
191 views
Best structure / rewrite rules to achieve the following url
I have been trying to achieve the following url structure in Wordpress and maintain a level of reusability in the admin area.
It is for a client preview area and needs to reflect multiple versions of ...
0
votes
1answer
78 views
How to create Custom image post?
I want to create a custom post type in which a post is only an image, title and description.
I want to have a front-end option for users to enter such a post.
What plugins do i need to play with in ...
0
votes
2answers
184 views
How can I display custom post types under multiple views?
I want to create custom post types with multiple views based on URL.
E.g., suppose I have a "Product" post type. I would like to have something like the following:
...
0
votes
1answer
28 views
One post auto attached to many another items
Let's say I'm building site with mp3's. I'm adding every single mp3 as custom-post-type. I 'm also adding artists bio and its displayed on every single-mp3 post. What I want to do is add this bio just ...
0
votes
3answers
873 views
How set template for “custom post type” individual post
For example, I have post named "My book number 1", that is in "Book" custom post type group. And is another post named "My book number 2", that is too in "Book" custom post type.
Question: How I can ...
0
votes
1answer
347 views
How display specific category post to specific users?
All
In my application, I am really confused that how to set the project flow in wordpress.
There are 3 Users.
1. Admin : High level mgmt
2. Doctors : Add patients reports
3. Patients : Can see ...
0
votes
1answer
489 views
Custom Post Type & Custom Menu Walker to append custom class for active post types
I have an interesting problem I am trying to solve here regarding a custom nav menu.
Essentially, I have created a custom walker class for my nav menu and I have manually added a menu entry directing ...
0
votes
2answers
616 views
Dynamically add / duplicate custom meta in custom post types
I am using Custom post types in one of my themes
I have one custom post type called "accommodation" with meta boxes to add details such as type of rooms (single, twin, double...); each room has a ...
1
vote
1answer
529 views
Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate
I've been asked to develop a website pretty much like (but not the same as):
http://www.yoursingapore.com/
basically we need to allow people to add Wordpress posts (custom post types) into a sort of ...
0
votes
2answers
64 views
Is there a way to have the view link on manage posts page to open in a new window or tab?
Hi I am trying to figure out on how to get the "view" link on the manage posts / custom post types and pages to open in a new tab or window.
I know it is probably possible to do via the ...
5
votes
4answers
683 views
How do I append multiple taxonomies to the URL?
Multiple taxonomies in URL
How does one append multiple taxonomies to the URL having the following:
Post Type: products
Taxonomy: product_type
Taxonomy: product_brand
Adding new ...
0
votes
1answer
64 views
Custom Post Type Implementation
I have been working hard to implement few custom post types for making a job board in hybrid news. So far, I have created custom post type- Jobs, created a page template http://pharmastudent.net/jobs ...
0
votes
1answer
415 views
Custom Field Template plugin and custom post types [closed]
I am using the custom field template plugin and it's working great for normal pages, having problems getting it to apply to a custom post type however.
My custom post type was created using the More ...
2
votes
2answers
543 views
modify all posts of a category to “no comments allowed”
I'm looking for a way to modify all posts of a certain category to be "no comments allowed" without going into each post settings, one by one, and modifying manually.
Perhaps a MySQL statement?
...