The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
18 views

Can't use get_option function in PHP file located inside plugin folder

I am currently developing a small plugin which queries an API for some XML data. The XML data is then used to display a page. I wanted to do most of the display and formatting related stuff in ...
0
votes
0answers
8 views

Possible to hide the search engine indexing disabled prompt/error message?

In Wordpress Settings >> Reading (../wp-admin/options-reading.php) there is an option called "Discourage Search Engines from Indexing This Site". If you check this, a notification error message will ...
-2
votes
0answers
16 views

404 page if I post a value containing url value

I am working on a plugin settings page and get a 404 page if I post a value containing url value like below. <input type="hidden" name="<?php echo $profile[ 'id' ]; ?>" value="<?php echo ...
0
votes
2answers
16 views

Why I can't change the permalink of this page?

I have the following problem with a permalink: if I open this page (it is implemented as a static page) on my local website: localhost/wordpressAsper/archivio it automatically change it into ...
0
votes
0answers
18 views

Can't save plugin settings

I am trying to change some settings of Breadcrumb NavXT plugin. After pushing the button "save" the settings seem to be saved. However, if I go to any other page of admin and then come back to the ...
0
votes
0answers
19 views

Settings keep redirecting to options.php on save attempt

So I've desperately been looking around and can't seem to find where my error is occurring and/or what is causing it. Background I've got a plugin that I've developed that I'm currently using and ...
0
votes
0answers
21 views

Using a dropdown to alter an option value on plugin settings page

I'm trying to implement a dropdown menu on my plugin's settings page. When the user selects a choice from the dropdown and presses the Save Changes button, I need the choice's value to be appended to ...
0
votes
1answer
22 views

Changing plugin options from theme functions file?

I am making a starting-point Wordpress theme that will be used on dev projects. In this theme, I am automating common plugin installs that are used on every project. I have been able to automate ...
0
votes
0answers
25 views

Move Custom Fields on General Settings Page to New Location

I've created some custom fields on the General Settings page after studying up on this post: Add multiple custom fields to the general settings page. I'd really like to move them to their own ...
0
votes
0answers
20 views

Multiple Installs using the same database AND tables

I've been looking for a solution to this problem for actually a few months. Before I get started I would like to inform that I have NO INTEREST in using wordpresses multisite. Here is the issue for ...
1
vote
1answer
38 views

Plugin options not being saved or created

Having a lot of trouble with this config page. I have followed the documentation (which was sparse) and done a bit of searching for help. My problem is simple, my config options aren't being created ...
0
votes
0answers
11 views

no posts or pages showing on mirror domain

alright this is a tricky one bear with me a while back i developed a site for someone and he just pointed his DNS nameservers to my host which is dreamhost. later he decided to change the DNS back, ...
0
votes
0answers
35 views

Adding a dropdown on my setting page

I have created a plugin and I have created setting for it where I have created a text field. But now I want to add a dropdown link. Can I show a thumbnail in the front of it in a dropdown, yes or ...
0
votes
1answer
15 views

Validating values using Settings API?

I'm using the Settings API to create options for plugin. Do I need to validate the input values for the security (for example stripslashes etc)? (I could not find that part in most of the tutorials). ...
1
vote
0answers
38 views

A question on WXR

I have a quick question around the import file for WordPress (WXR) as I'm really new to WordPress, a couple of things don't make sense. In most examples I found, the first part of the /channel node ...
0
votes
1answer
18 views

Adding a theme option to the admin that lets me turn on/off a javascript file

I want to add a theme option to the Wordpress admin so that I don't need to commit code every time I need to "activate" (or deactivate by commenting out) an Optimizely javascript snippet I only want ...
0
votes
1answer
51 views

How to make a textarea accept javascript in my settings apge?

I'm building a simple plugin that will allow us to add code to our site header by defining it on our settings page. However I haven't been able to make it allow scripts. This is my current code: ...
0
votes
2answers
73 views

Custom form in admin area, redirect in wrong page

I'm writing a custom form on my plugin settings area. <form action="<?php echo admin_url('options-general.php?page=yasr_settings_page') ?>" id="form_add_multi_set"> ...
0
votes
2answers
110 views

Can't output do_settings_sections . Can't understand why

I've this code: /* Hook to admin_menu the yasr_add_pages function above */ add_action('admin_menu', 'yasr_add_pages'); function yasr_add_pages() { //Add Settings Page add_options_page( ...
0
votes
0answers
15 views

How do I build a settings panel under the plugin

I'm trying to build a settings panel for my plugin that is located under the plugin on the plugin page and slides down when the user clicks the settings link like other plugins (WP Maintenance Mode) ...
0
votes
1answer
74 views

Can't change theme options, connection reset error

I've downloaded a theme and applied it, but whenever I go to Appearance - Theme options and click on "save settings", I get an "ERR_CONNECTION_RESET" error, while in address bar I see ...
0
votes
2answers
40 views

Change admin defaults for reading settings

I have customised index.php to display 6 posts: <?php // Get header get_header(); ?> <div id="primary"> <?php // Begin paginate and loop $temp = $wp_query; $wp_query = null; ...
-4
votes
1answer
53 views

Echo get_option displays as text

I am trying to use some code that is stored as a settings option in WordPress. When I try to use the following code below however, it show up as plain text instead of executing. The option I have ...
0
votes
1answer
46 views

Can deactivating a plugin sometimes “reset” settings within that plugin?

I need to deactivate a plugin on a client's website to check whether it is causing a certain issue or not. But I'm not 100% sure that after deactivating this plugin, all its settings will necessarily ...
0
votes
1answer
37 views

What is the best way to revert to www version of domain name?

My site uses a bare domain, example.com. I want to use Google's Page Speed Service, which requires a www subdomain, like this www.example.com Google says the server must use a 301 redirect. What ...
0
votes
1answer
34 views

Wordpress Setting page can not be saved by html radio

I have this php Code to make a option page that activate a function if the user set "active" and turn off the function, if the user set "Not active". <?php add_action('admin_menu', 'custom'); ...
0
votes
1answer
50 views

How to recover WordPress Adress(URL)

I installed WordPress in localhost. I changed the WordPress Address from the general settings. After that none of the previous pages appears. Instead, a "Page Not Found" error page is appearing. I ...
0
votes
0answers
15 views

Passing settings to multiple WYSIWYG editors [duplicate]

I am trying to create multiple wysiwyg editors on the same page using a loop. I am trying to pass settings to each editor to change their look of them. I'm not sure what I am doing wrong. I am ...
0
votes
1answer
37 views

how to register / add multiple options into one field in wordpress?

How can I register or add multiple options into one field. For example, we save a logo in get_options() by registering the setting and adding fields by add_settings_field() function and we output it ...
0
votes
0answers
87 views

Custom options - register, defaults and delete empty fields (Settings API)

I cant figure out how to register all of my setting fields into 1 database option. Code for my menu page: add_menu_page('Custom options', 'Custom Options', 'manage_options', 'rm_options', ...
1
vote
2answers
106 views

Set the active Navigation Menu from a plugin

Is there a way to set the following option from a WordPress plugin, if you know the name of the menu you want to set: My developer says it's not possible, but I am sure on of you gurus knows a way ...
0
votes
0answers
49 views

Adding line to multidimensional array option

I'm building a shipping plugin with a settings page where the user can add boxes with the attributes : Name, Length, Width, Height So far, I have managed to greate an option boxdata[l,w,h] and I have ...
0
votes
1answer
49 views

While Using Static Pages, How Can I Get /blog into the URL of Each Post?

I have Wordpress installed on the root of my website. It is using a static homepage and posts page. As it stands, each post will look like this example.com/blogpostname. I don't want to use category ...
1
vote
1answer
49 views

Settings API with custom post type menu limitation

I've created a custom post type menu with register_post_type. I want to add a settings sub-menu with lots of options, including extra "Add option to a select list" button. The problem: when using ...
3
votes
2answers
2k views

Add multiple custom fields to the general settings page

What I would like to do is to add a few custom fields to the general settings. This is the code that Im using. It works allright but I just cant figure how to add more fields. I would like to create ...
1
vote
1answer
80 views

WooCommerce “Save Changes” button appears inside custom settings

I am writing WooCommerce plugin which requires custom settings page. I have decided to extend general WooCommerce settings by adding new custom tab. I have managed how to do it in WooCommerce way and ...
0
votes
1answer
106 views

Getting settings saved two times in settings page with tab

I tried to show tabbed settings in admin settings page by a tutorial but for me am getting settings saved notification for two times. I think it is due to different settings field but based on ...
0
votes
0answers
39 views

Settings API: Change position of custom setting field

I've searched high and low on Google and this site for an answer to this and am quite surprised to find nothing about it anywhere I've added a custom setting to the General settings tab using ...
0
votes
0answers
33 views

I need to move the “php_errors.log”

I want to move the "php_errors.log" file from the root directory of the website (working with wordpress). Of course if I directly move it into a directory like "logs/", the file will be regenerated, ...
0
votes
1answer
105 views

Allowed memory size exhausted problem

This seems to be a weird problem. The exact error is this: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 337608 bytes) in ... It only hangs the dashboard. The ...
1
vote
3answers
1k views

Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?

I am having a bit of a strange issue with rewrite rules not flushing properly. I have tried using flush_rewrite_rules(); and flush_rewrite_rules(true);. I have also tried globalizing $wp_rewrite ...
0
votes
0answers
57 views

Multiple Select Boxes Settings API

I know how to do select boxes, those are easy - but how would you do multiple select boxes? where you can select and save multiple things? Would you still use the selected() function? if so can some ...
1
vote
1answer
138 views

Settings API - how to update multiple options manually?

I'm storing all my options using Settings API: function registerSettings() { register_setting('XX_theme_settings', 'XX_theme_settings', 'setting_validate' ); add_settings_section('theme_options', ...
0
votes
0answers
88 views

How does register_setting and settings_fields work?

In the WordPress settings API, I understand that register_setting() must be called for add_settings_field() to be saved and updated according to the codex. Since almost every WordPress function has ...
0
votes
0answers
181 views

Error: Options page not found when saving my Plugin-Settings

after saving my options for my plugin I am getting the options page not found error. After some research, I found, that I may have forgotten to register my option or registered the wrong one. I ...
0
votes
0answers
31 views

Permalink Settings for Custom Post Type

I have a plugin that creates a custom post type. I am able to control the rewite rules and have also created a plugin settings for the archive url and taxonomy urls slugs. However if a user enter ...
1
vote
1answer
77 views

Can I use the different settings sections over different pages using the save options group?

I registered one options group with few different options sections. Each section is meant for different page. register_setting( // ...
0
votes
1answer
104 views

Register theme customizer settings when theme activates [duplicate]

I've been following this great tutorial (http://wp.tutsplus.com/tutorials/theme-development/digging-into-the-theme-customizer-overview/) and now I have set the Theme customizer. As far as I ...
0
votes
1answer
127 views

Single callback with multiple setting fields

Is there anyway you can use a single callback with multiple setting fields? Maybe there is a way to pass the setting field used through the callback?
0
votes
1answer
71 views

Setting the uploads directory

So I want to change my uploads directory. I'm able to change it using: add_filter( 'pre_option_upload_url_path', 'wpse_77960_upload_url' ); function wpse_77960_upload_url() { return ...