9
votes
9answers
26k views

Can I set a default featured image for a category?

I'm setting up a site with a theme that takes advantage of the "featured image" feature of WordPress. Since my end users are not the most tech saavy in the world, I'd like to set things up so that the ...
0
votes
0answers
2 views

Form entries don't display all the time on table

I created a custom lead generation tool for real estate agents using wordpress multisite and a plugin called Formidable. Since there are multiple forms, I had a programmer custom code the entries into ...
1
vote
2answers
1k views

AJAX returns response 0

I'm trying to get user profile values using an AJAX call, but the response is always 0. Here's my PHP: wp_enqueue_script( // Add JS to <head> 'cc-author-change-post-author', ...
0
votes
0answers
6 views

Auto Login After Registration

I would like that the user after clicking on the registration link sent via email (after the complete the registration form), log-in automatically without that he must enter your username and ...
0
votes
0answers
14 views

WordPress Multisite on IIS 8.5 - options.php not found on save changes

I've just installed a fresh WordPress on IIS 8.5 and configured it to work with sub-directories. On the primary site everything works fine, but... The problem occurs on the sub-sites that are created ...
1
vote
1answer
1k views

List child pages by slug not ID?

I am looking to use the wp_list_pages function to show children pages of a specific page ID. I was able to do this easily, but now I found an issue with it. I am running a Wordpress network of sites ...
1
vote
2answers
571 views

Using plugin functionality in external php script not working

I am encountering a strange problem which I couldn't solve so far. I'm calling a .php script via cronjob (Debian/GNU Linux). To use wordpress functionailty I added: define('WP_USE_THEMES', false); ...
0
votes
0answers
8 views

Custom “wp_login.php?action=lostpassword” and reset password

I've got a custom registration form which works. Then, on this form, I have the "forget password" link. This one is not working very well. The "forget password" form is OK with its design; enter a ...
1
vote
1answer
21 views

Why does my <Style> dissappear?

Why does my style-tag disappear, in both my free site and my localhost site? Where do I find the Wordpress guidelines that specify what can-not be done. Example, where do I find: "Wordpress does not ...
-1
votes
1answer
13 views

How to solve missing style.css

Downloaded themekit from themeforest. I am using social theme in the kit. Now on installing theme to wordpress its showing css file missing , for social theme as well as when tried installing the ...
0
votes
1answer
18 views

How to refer to a Wordpress hosted free posting website vs a fully functional WP paid website with pages?

What is the naming convention for the free Wordpress hosted site (like xyz.wordpress.com) vs a hosted site that is self hosted on own own machine or paid to be hosted on a 3rd party site like ...
3
votes
1answer
551 views

Using separate Apache log files for multisite

A while back I left Blogger and downloaded my blogs to my system. I hosted them there with each individual blog as a VirtualHost for a while. Later, I imported them into WordPress and am hosting them ...
0
votes
1answer
28 views
+50

Extract and display user infromation on an automatically created page

Is there a way to get the block of code below to extract a list of given user information as it creates the page for the new user. It creates new page for new user as supposed but I'd like it to alos ...
0
votes
1answer
416 views

How do I embed youtube video via url in frontend posting

I would like to embed videos & images by entering url in my wordpress site. In WordPress repsitory there are many plugins for embed video by url but in my site I want to enable this functionality ...
0
votes
0answers
8 views

How To Validate Phone Numbers in Redux Framework

I'm trying to validate a phone number field but the available options other than text won't work since people may use dashes and parentheses to enter their number. I've tried preg_replace but I'm ...
0
votes
0answers
11 views

Wp Redirect plug in

So I installed a new plug in, in lieu of writing the code to redirect mobile users to my mobile site. The plug in now redirects ALL users to mobile site, including desktop users. All sub domains ...
0
votes
2answers
13 views

How to switch subdomain with root domain and redirect traffic?

I want to move subdomain to root, and create a new root. I have root.com. I want to move it to sub.root.com and install a new Wordpress intall at root.com. Any idea how I redirect the traffic from ...
0
votes
1answer
11 views

Migration to staging server, pages from other site loading in

I'm not really sure how this could happen, but i migrated a wordpress site to a staging server where i have many wordpress sites hosted, everything seemed to go smooth with the exception that all ...
3
votes
1answer
1k views

TinyMCE popup windows using WP functions

In my editor I would like to use a TinyMCE generated popup to insert in the textarea some complex shortcodes. I use the TinyMCE API to show the popup (bottom of this question). The popup is a PHP file ...
0
votes
1answer
12 views

Wordpress installed in root, need second in subdirectory with different domain

God, this little problem drives me crazy and I really hope that you'll help me how to figure it out. I searched over all previous threads and in the codex of wordpress, I find some close situations ...
0
votes
1answer
15 views

Assign postmeta in bulk

I have meta paramteres for my pages, which i would like to change in bulk (about 300 pages). I know that meta name is "header-settings" and values can be "no-data", "site-data" and "page-data" I also ...
0
votes
0answers
7 views

Custom rewrite rule returns post instead of (start)page

I need a custom rewrite rule so that /a/b/c/d/123 points to the startpage because my own plugin on the startpage needs those parameters from the URL. / I was able to accomplish most of ...
0
votes
1answer
17 views

shortcodes won't show in custom post type

I created a custom post type, but when i have added a shortcode for a slider it doesn't show the slider it shows just shortcode in text. and when i change get_the_content by the_content, it shows me ...
0
votes
0answers
8 views

Get link to another taxonomy from a taxonomy list

I'm currently working on a site for an artists directory. I have two custom taxonomies; Artists and Artist Genre which will be tied into a custom post type of artwork. I can get a loop to list out ...
0
votes
1answer
379 views

Change custom post type slug from plugin options

I'd like to give users the option to change a custom post type slug in my plugin. Using this answer, I'm able to hardcode it into a function: Redeclare/Change Slug of a Plugin's Custom Post Type ...
-2
votes
0answers
12 views

Design a website without expensive web host overheads?

I'm looking to create a website (not necessarily wordpress) for a friend who doesn't want to pay for more than the basic web hosting package, i.e. without an SQL database. So wordpress.com is an ...
0
votes
1answer
15 views

Link to date_query results in Wordpress

I have this line of code: $args = array( 'date_query' => array( array( 'after' => 'January 1st, 2015', 'before' => 'February 15th, 2015', ...
0
votes
3answers
3k views

Add and Remove fields in Profile page

Registration Form Fields: (Front-end Registration) Username, Email (password will generate to email). Edit Profile: (Front-end Edit Profile) Firstname, Lastname, Username, Email, Phone, Address, ...
1
vote
1answer
10 views

conditional statement based on terms

I was wondering if someone could help me out. I have created a custom query to retrieve in a custom single.php to retrieve posts which have the same custom taxonomy term and display them. here is the ...
1
vote
2answers
803 views

Cropping thumbnails to specific dimensions on front end post

Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
3
votes
1answer
1k views

Check if page is in a certain menu

I have a client that wanted two "main menus" and we needed to programmatically display whichever menu contained the current page. How can I do that? Ex: We're on the "About" page. Figure out which of ...
1
vote
1answer
375 views

301 redirect for converted post type

I just converted my posts from the default 'post' type to a variety of different custom post types based on what category the post is in. E.G. Posts in the "News" category are now a custom post type ...
0
votes
1answer
80 views
+50

Admin: global $post empty

I tried to get $post var outside function php in wordpress admin panel. The only way that I find to access to $post is to add_action. However I want to get this var outside the add_action and global ...
0
votes
1answer
40 views

Installed in root, want second in subdirectory

Current situation I am trying to plan ahead and avoid any grievous pitfalls and/or headaches in adding a second domain/site for a client. WP is currently installed in root The client wants a second ...
1
vote
1answer
358 views

Displaying different page links on different pages

I have a wordpress site with 100+ pages. Now suppose 5 pages are related to page 1, and I want to show them in side bar as similar pages/related pages and other group of pages in other menu in ...
-3
votes
1answer
29 views

Excerpt length and alignment

I want excerpt to be appear in paragraph, atleast 400 words and words should not be cut at end. This is my website and it should be align left. i want excerpt like single post style. And i dont want ...
-1
votes
1answer
21 views

Nice font not working when http to https - SSL Issue

I have two questions here about SSL actually. This is my very first time using ssl for website. 1st question: I have recently purchased an ssl for my websites. I have a nice font for my website which ...
2
votes
2answers
466 views

Multiple files in wordpress plugin

I'm trying to write a plugin with multi files. I'm sure I did it before without a problem, but now I have the problem in the subject. In the main plugin file I have included a file name - ...
-3
votes
0answers
16 views

Submit a form without keyboard input, addition with the help of button [on hold]

I am new to WordPress. I want to create sales status website, something like this... < - button>Item 1< + button> < - button>Item 2< + button> < - button>Item 3< + button> < - ...
0
votes
1answer
9 views

How can I display custom fields value from attachment media?

I have created the follow code in functions.php to add custom fields to attachments media library. Data saves as well, but I can't get data to display into the template file. Any suggestion?? Thanks! ...
0
votes
3answers
119 views

Why does Simplepie return feed items in a wrong order?

I have this feed from picasa (correct but arbitrary, desired order). The result is messed up Also, with this feed, for example. It's fine in regular, sorted by date feeds, but not these. In the ...
0
votes
2answers
50 views

Get parent categories of custom post type

I'm trying to display all the categories that belong to the custom post type that the user is in. For example this post: http://bit.ly/1ANisxN Is a custom post type that belongs to this page ...
0
votes
0answers
5 views

Save_post action hook using the add_settings_error function leads the “cannot modify header…” warning

I am fiddling on that for quite a while. I've asked a similar question already over here. Since then i've dropped according to recommendation the transition_post_status action hook as well as the ...
0
votes
1answer
14 views

how to Serve scaled images

i have this error in the speed test serve scaled images The following images are resized in HTML or CSS. Serving scaled images could save 547.0KiB (81% reduction). i tried many plugins as i am not ...
1
vote
1answer
451 views

wp_specialchars and wp_specialchars_decode in a shortcode plugin

I have written my first plugin, a shortcode plugin. I have read about wp_specialchars and wp_specialchars_decode but I'm not sure how to use them. The plugin read a shortcode allowing some parameters ...
0
votes
2answers
443 views

Getting a “Warning: call_user_func_array()” error whenever I install/update a plugin

This started happening after I moved my wordpress installation from the shared hosting to a vps. The full error is this: Warning: call_user_func_array() expects parameter 1 to be a valid ...
0
votes
1answer
20 views

adding more text to a query string

On a site I am developing, I need a "special search" function. The search page is called with a search query from a form with _GET parameters like this : ...
0
votes
1answer
27 views

Call header and footer on login page

Is there a way to call theme header and footer on the default login/register page? I understand that we can easily make a custom login page still asking. Thanks
0
votes
1answer
302 views

Not getting the Correct JSON response from Ajax Request

I am trying to save data from backend with ajax. But its returning data in HTML as well. But i want only JSON data. ////////////////////////////////// // Do Ajax Request to ...
0
votes
0answers
51 views

get_terms(); show private posts when logged in

Hi have a custom post type "FAQ". I got some "FAQ's" that are private, also only visible for logged in users. I used "get_terms()" funktion for a widget that is listing links to the categories of ...

15 30 50 per page