0
votes
1answer
257 views

add_rewrite_endpoint not working

I've been having looot of troubles with this function, I don't know what to do, because I tried everything. I have a custom post type, let's call it study. The url structure for it is ...
0
votes
1answer
15 views

How to move setting field up a row on general page?

I have added my custom setting field and it appears at the very bottom of the general setting page. I was wondering if there is any way to place it under tagline field rather than at the bottom? I ...
0
votes
1answer
43 views

Integrate non-wordpress site into a wordpress site

I am investigating a project where a site that has already been built needs to be integrated into a wordpress site that is currently under development. Essentially the preexisting site consists of two ...
0
votes
1answer
308 views

get_adjacent_post - in same term not working

All I want to do is link to the next post in the same category, and for the life of me I can't see what's wrong with my code. Does in_same_term work for everyone else? <?php $prev_post = ...
0
votes
1answer
25 views

Execute filter in theme as last

Is it possible the execute the called add_filter in theme after all plugins they've been loaded? I use one of the plugins from repository to can add the ability to define custom target links for ...
0
votes
1answer
29 views

Simple term-archive-linked Taxonomy Entry output

I've registered a Taxonomy named "type" and linked it to the Custom-Post-Type "group". I simply want to output term archive-linked entrys of the Taxonomy "type".
0
votes
1answer
132 views

tax_query showing no results

I'm creating a music database site with two custom post types: tracks and albums. I've linked the tracks to their respective albums with a custom taxonomy for the album's slug. On each album page, I'm ...
0
votes
1answer
49 views

How do populate a column when listing custom posts?

I've created a custom post type. I want to customize what the user sees when browsing posts of this type. I've added a column with this function: function stb_replace_title($columns) { ...
0
votes
1answer
55 views

Prevent Contributor to show comment list

How can I change WP so the Contributors will not show to comment for other post, So they will see only the comments to their post?
0
votes
1answer
142 views

How to add tags to post from frontend?

I am working on a site where visitors will be able to add tags to post from frontend without being able to edit the already assigned tags. It basically will be a add tag button where upon clicking ...
0
votes
1answer
58 views

Displaying details of a post in a sidebar

I am developing a wordpress theme but m still new into and was learning. Basically, its a theme for resource website which provides web templates. In my theme i've created a details section in sidebar ...
0
votes
1answer
70 views

Custom permalink based on custom post type fields

I'm workin on new webiste and I got stuck :( Basically I've created a custom post type for products with custom fields etc. Each product has a main category and subcategory - selected from ...
0
votes
1answer
70 views

Pagination url for page template

I am creating a page template in WordPress to show all my posts. But i have a problem with pagination. I have a page url like below: http://localhost/sdd/video "video" is my page slug. And the ...
0
votes
1answer
85 views

WordPress Media manager select file button, how to prevent hiding?

In a customized mediamanager (base versione 3.5) I would like to keep displayed the "select file" button even when some files are already uploaded in the album. Is there a simple solution?
0
votes
1answer
97 views

How to query posts with current or future date only

I want to only get posts with current or future dates, to show upcoming events. Current arguments: $args = array( 'post_type' => 'event', 'meta_key' => 'event_start_date', ...
0
votes
1answer
21 views

Error in get post by met_key

I have this code, $type = get_the_ID(); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $units3 = new wp_query( array( 'post_type' => 'units' , ...
0
votes
1answer
30 views

search results based on categories or custom fields

So I have the below spitting out by post types; how could I edit to add custom field data to also populate? And or just categories? $categories = array( 'post' => 'Articles', ...
0
votes
1answer
60 views

Unable to Retrieve Setting Value for my Plugin

I'm developing my first WP plugin, and I'm trying to use the Settings pages to create options for the plugin. // add settings page add_action('admin_menu', 'qd_button_admin_add_page'); function ...
0
votes
1answer
254 views

Too many index.php files running and eating up all memory

I have wordpress site installed on dedicated server. From few days I'm experiencing high memory consumption on this cpanel account and it is slowing my wordpress site Then I examined Process ...
0
votes
1answer
173 views

Got white blank page after copying the functions.php to child theme

I got white blank page after copying the functions.php to my child theme. How can I change "like_escape"? What file can I find that? And I see this notice: Notice: like_escape is deprecated since ...
0
votes
1answer
169 views

Custom post type archive pagination with HTML5Blank theme?

Can't get the pagination to work. Here's my archive-work.php: <?php get_header(); ?> <main role="main"> <!-- section --> <section> ...
0
votes
1answer
245 views

Edit Permalink Structure For Custom Post Type or Modify .htaccess?

I've been trying to find a solution for days now and I am absolutely stumped. I am putting together a website to list my domain portfolio for sale and I'm using a plugin I purchased to lists the ...
0
votes
1answer
33 views

Taxonomy template by post type

I have 2 custom post types that share a taxonomy. The taxonomy template of my taxonomy ( taxonomy-my_tax.php ) will query both custom post types. Is there a way to have a taxonomy template for each ...
0
votes
1answer
50 views

Is a custom post type considred a plugin?

I am reading up on custom post types and taxonomies. I am new to Wordpress development, and just trying to get a firm grasp on custom post types. Upon creating a custom post type: <?php /* Plugin ...
0
votes
1answer
31 views

Custom Post Type Archive Not Showing Posts

I'm trying to create a custom post type "Press" with an archive. I think I've done everything needed, yet when I go to /press url, no posts are showing up. I entered "test" in my archive-press.php, ...
0
votes
1answer
218 views

Multiple wp_editor instances in custom post type using Ajax

In a custom metabox, I need to generate a tinny wysiwyg wp_editor everytime we click on a button.. I struggled a lot with this and couldn't achieve it. The js $.ajax({ url: ajaxurl, data: ...
0
votes
1answer
64 views

Replacing an Image gallery

I posted this on the regular stackexchange site, but then realized that there was a wordpress specific site, so I'm reposting it here. I am trying to create a gallery within a custom post type I have ...
0
votes
1answer
30 views

Upgrade local version of WordPress - links point to live site

I've got my local development version of WordPress and I'd like to upgrade the installation. However, the WordPress 4.0 is available! Please update now. link points to the Live site. All the settings ...
0
votes
1answer
73 views

pass-protected pages and posts not protected after enter them 1 time

i use wordpress 3.9.2 and i read a lot of article and Q about clear cookies but some of them is too old ( for wp 3.4 and wp-pass with different code) or not solve my problem i have some password ...
0
votes
1answer
214 views

How to construct a custom html for submenus

How to write a walker class for constructing a new submenus. for my wordpress theme the submenu is looking like this: <li class="drop"> <a ...
0
votes
1answer
36 views

Separate Profiles for Users

I may be using the word - 'Profile' wrong here, but after two hours of googling am left with zero results. So, the query is as follows - We wanted to make a site where we can invite writers to write ...
0
votes
1answer
42 views

How to assign image on specified category and not show the image on other categories

I want to assign an image to 1 category and want the rest of the categories to be hidden on my home page. I tried this: foreach((get_the_category()) as $category) { echo '<img ...
0
votes
1answer
36 views

WordPress - Apperance > Menu

How do I use the menu on the dashboard under Appearance > Menu - http://prntscr.com/5052sl The one I'm using is based on page arrangement, so all my pages are displayed on the menu under some pages. ...
0
votes
1answer
493 views

Sanitize textarea instead of input

I want to add a new field to the user registration. I'm using this tutorial: http://www.paulund.co.uk/add-custom-user-profile-fields It worked great for me, but I want to switch the input text to ...
0
votes
1answer
34 views

Backed up site on localhost affecting live site

I used BackupBuddy to make a copy of a website I'm working on and then used MAMP (Windows) to recreate the site on my localhost so I could work on it. I must have done something wonky because now the ...
0
votes
1answer
31 views

Which is less DB intensive in the loop: custom taxonomies or meta fields?

If I'm checking for a certain variable for each post in the loop, is it less DB intensive to specify that variable using custom taxonomies or meta fields?
0
votes
1answer
77 views

Thumbnails resized and not cropped in the center

here's image of some thumbnails in my wordpress homepage: http://i.imgur.com/x8EmtMO.png The first one is resized very nicely - I don't know why and how - and the other ones are cropped in the center ...
0
votes
1answer
35 views

Page displaying 1st post from a range of custom tax?

Is it possible to have a page display the 1st post from each category from a custom taxonomy? e.g custom tax called gallery-section, within that it has a range of categories, i.e Gallery 1, Gallery 2 ...
0
votes
1answer
33 views

.htaccess help to a beginner

I have made a custom page template and created a new page which is set to use the custom page template. My URL for the custom page is now: www.domain.no/property The website will have 3 different ...
0
votes
1answer
202 views

WordPress show custom post type on homepage

How do I display custom post type in homepage? This is my custom code: // Add the Meta Box - Resorts function add_custom_meta_box() { add_meta_box( 'custom_meta_box', // $id ...
0
votes
1answer
41 views

How to loop through 1 CPT with 2 Taxonomies

I have a CPT (Products) which has 2 taxonomies (Industry and department) I have the loop which delivers a "Product by Industry" which works Industry 1 • result 1 • result 2 Industry 2 • result 1 • ...
0
votes
1answer
435 views

wp-admin will not redirect to wp-login.php

For some reason my plugin is causing the /wp-admin/ to not redirect to wp-login.php as it should. I've narrowed it down to these two lines of code: foreach( glob($this->path['modules_dir'] . ...
0
votes
1answer
34 views

Make User Role a Filter

I have a backend which I'm trying to edit. Basically it says: If (any) user is logged in, show some records, else show nothing. I'd like to limit this to a certain role named "Administrator", like ...
0
votes
1answer
114 views

Custom Post Type Custom Archive Page Not Working

I've created a custom post type and taxonomy for a portfolio loop: // Portfolio CPT function portfolio_cpt() { $labels = array( 'name' => _x( 'Potfolio Items', 'post type ...
0
votes
1answer
37 views

Define a Permalink Structure by Post and Page

All, I have a post that works fine with a permalink setup. However, I also have a page called gallery. What I would each post can have a page. So for example I have a post named business-name so my ...
0
votes
1answer
59 views

Apply height and width for the_content() inside youtube video tag

I am displaying video and content form this function the_content() for this am using you-tube [embed] link. How can i give height and width ??? Also, I am using the_post_thumbnail() for image it to ...
0
votes
1answer
130 views

XMLRPC - getPosts - How to call from remote site?

For the purpose of this question, I have two WordPress websites. Let's call them "Portfolio" and "News". Portfolio is a "pages" only website while "News" is a "posts" only website. On the Portfolio ...
0
votes
1answer
89 views

Header Image instead of dynamic text

i'd like to change the dynamic text in the header that makes the title of the site with a logo i've designed. how do i edit this code to achieve this? <div id="logo"> <?php ...
0
votes
1answer
111 views

A dropdown with checklist

I'm working on a wordpress website now but I have a problem with a dropdown on a taxonomy. This code is in a public form so that the visitor send a recipe, taxonomy is the ingredients which already ...
0
votes
1answer
124 views

How to display 2 function calls in same line?

<?php the_author_posts_link(); ?> <?php the_time('g:i a'); ?> When I call above 2 functions you will see the output in two lines. But what Need is "Andrew 2.10" I need both output in ...

15 30 50 per page