2
votes
0answers
24 views

Social Links Menu displays icon instead of text (twentyfifteen)

EDIT: I posted too hastily. I just discovered that the solution to my problem is to bypass the regular Menus section and create a custom WIDGET, which can serve as a custom menus box. Below is my ...
2
votes
0answers
17 views

Change the RSS Publication Date to use a value from a custom field

I have a site that wants to order its RSS output by a date value in a custom field. I'd rather not create a new feed to do it -- how do I override the default feed date value?
2
votes
0answers
42 views

Case-insensitive add_rewrite_rules in Wordpress functions

Been hitting my head against the wall on this for a while. If I have a add_rewrite_rules like so: $aNewRules = array('my-books/?$' => 'index.php?pagename=my-books'); This works correctly; ...
2
votes
0answers
41 views

Password field (and confirmation) showing up twice on registration

Before I state my problem, I'd like to explain what I've been doing. I am trying to find a membership plugin to work with my site. I only have one registration (free membership) needed. I have been ...
2
votes
0answers
44 views

Dynamically add styles to WP TinyMCE editor

I want to add custom styles to Wordpress using dynamic arrays. My question is how can I add the two arrays to the style_formats array within the 'my_mce_before_init_insert_formats' function ...
2
votes
0answers
36 views

Where to Store Custom User Fields

I've built an enterprise Wordpress site and we are currently designing an automated import of company user data directly into the Wordpress database, so it's not manual. This user data has more data ...
2
votes
0answers
44 views

has_term or in_category for Custom Post Types

I have property as a custom post type. I want to display a specific message if the property is in the sold category. To do that, I'm using the function below: if ( has_term('sold', 'category')) { ?&...
2
votes
0answers
35 views

How to create a custom page base on URL for Wordpress?

How can I achieve the following: example.com/mycategory/my-first-page example.com/mycategory/a-random-file-name-page If the user enters http://example.com/mycategory/*, it will load a standard ...
2
votes
0answers
14 views

crontab wp-cron.php on multisite path-based network: one for each path? Or just one for the root?

I have a single wordpress with multisite config enabled: define( 'WP_ALLOW_MULTISITE', true ); I want disable internal cron in wp-config.php with: define('DISABLE_WP_CRON', true); My multisite ...
2
votes
0answers
20 views

Render Selected Categories in Admin Edit Post Screen differently

Selected Categories for a post in the admin screen are rendered by: // Put checked cats on top $output .= call_user_func_array( array( $walker, 'walk' ), array( $checked_categories, 0, $args ) ); ...
2
votes
0answers
17 views

Can I strip HTML tags in the “Compare Revisions” screen?

I am building a CMS for content editors that have zero tech savvy. They currently use a system called NewsCred that allows them to compare revisions much like how WordPress does when you visit /wp-...
2
votes
0answers
45 views

Filtering a custom post type by custom taxonomy in archive template

I've seen this question posted in different forms before, but most of those solutions are centered around the admin interface, and I haven't found any answers that apply to the front end. I've got a ...
2
votes
0answers
16 views

wp-admin remove the subfolder URL

I have a problem with WP. I have a website with this URL: http://sub.domain.com/subfolder My Website works fine, but when I connect on wp-admin, the subfolder URL disappeared (http://sub.domain.com/wp-...
2
votes
0answers
23 views

Date/time limitation of posts where function must be executed

I have this piece of function in my functions.php file: function user_content_replace($content) { $sentences_per_paragraph = 3; // settings $pattern = '~(?<=[.?!…])\s+~'; // some punctuation and ...
2
votes
0answers
81 views

How to allow users login to WP from external domain and make REST requests

Basically what i want to do is: Use Wordpress as a login system and data storage for web-application on another domain. Make users able to register and perform REST calls from the application. Let ...
2
votes
0answers
15 views

Script won't execute in the media manager

I'm trying to execute a jquery script on the click of a button in a custom tab of the media manager, but it does not seem to work. I have been told this might be due to the button not being loaded ...
2
votes
0answers
22 views

get / list categories and counts filtered by custom taxonomy term

In my post 'post type' besides "categories" I've a custom taxonomy called "product-types". The category is actually more "manufactures" of the product types. I've a product-types page where I list ...
2
votes
0answers
49 views

Download external images with function

Actually, i display images on my site from other sites. Url is on a custom field name "couv" I'd like to download theses pictures on my site and create a new custom field with the new value "couv2" I ...
2
votes
0answers
31 views

SQL Query to copy value of a meta_key into another meta_key

I am trying to figure out how to replace the value of one advanced custom field with the value from a different custom field. Would anyone be able to help me structure a SQL query that will do this ...
2
votes
0answers
38 views

Using a custom field value to redirect away from a 404 page

I’m moving from an old CMS to WordPress. The old articles are saved as posts and the new WordPress permalink is %post-id%. The old URL slug is unique and saved as a custom field for each post; the ...
2
votes
0answers
21 views

Select menu should display categories and the item's depth

I have a select menu of a custom post type in the header.php: <?php $selectloop = new WP_Query( array( 'post_type' => 'products', 'posts_per_page' => -1 ) ); echo '<form>&...
2
votes
0answers
22 views

Detecting Wordpress Customizer Panel

Recently started developing a Wordpress theme relying heavily on the customizer API. One thing I'm stuck with is detecting when a specific panel has been clicked or opened. Regular old "on click" ...
2
votes
0answers
14 views

WordPress trims off the forward slash when import

I have an XML file with some posts to import to WordPress But, when I import, it seems that WordPress takes off the forward slash from the permalink, so instead of showing the address like this: ...
2
votes
0answers
32 views

__NAMESPACE__ with register_activation_hook

Im teaching myself namespaces and OOP in wordpress at the moment so bare with me. In the base of my plugin I'm loading activation and deactivation hooks. Currently the deactivation hook works but ...
2
votes
0answers
29 views

Disable plugins on cron and ajax page

I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
2
votes
0answers
67 views

Can we have same term slug in different taxonomies?

I am having problem when creating term with same slug in different taxonomies. I researched that Unique key is removed from slug in wp_terms table, so i am getting problem to figure out that why i am ...
2
votes
0answers
48 views

How to load paginated post pages via ajax

Here's the case I got: I've setup post pagination for my website and everything works well. Except one thing - on every new page request all the resources are loaded again. This makes the website ...
2
votes
0answers
28 views

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user's posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test ...
2
votes
0answers
22 views

Set subdomains live in a next step

I'm running a site on a different CMS and we are switching to WordPress soon. At the moment, there are sites like domain.at, sub1.domain.at and sub2.domain.at, served by one installation of the old ...
2
votes
0answers
93 views

Media upload via backend doen't work after moving site

I have copied my site to a subdirectory for test purposes, everything works fine now. The only problem I have seen so far is the Media upload. When I try to upload a file I get a: Unable to create ...
2
votes
0answers
69 views

Add aditional class to get_avatar when showing image

I want to add bootstrap img-responsive and img-rounded classes to avatar image when displaying one. But for some reason the class is not displayed when using get_avatar. By WordPress codex there is ...
2
votes
0answers
94 views

How to modify the new WordPress 4.5 link inline toolbar

I had my own plugin that add custom links options to the old wordpress link edition window (data attribute, nofollow etc). The new inline link toolbar introduced in WordPress 4.5 is ... not what I ...
2
votes
0answers
40 views

category_name not working (not showing up in sql query debug)

My plugin has a shortcode and it retrieves animals. There are filters/arguments and they all work well except the category argument or parameter. The category name(s) is/are well passed to my ...
2
votes
0answers
41 views

Should I hint table index for search query on wp_post

I'm currently inspecting a WordPress setup with multiple custom post types that should be included into search results. The database query for a search after the word Search looks like this: SELECT ...
2
votes
0answers
55 views

iris color picker in widget - click event doesn't fire when initially when widget is first created

I added the wordpress(iris) color picker to a widget, and the color picker is not clickable when the widget is first created. My guess is that it's where/how the javascript file is being enqueued, but ...
2
votes
0answers
83 views

Color Picker (iris) in widget - refresh when edited in Customizer

I have added the WordPress Core color picker (iris) to a widget I developed, but when I edit the color, there is no change triggered. As a result, the iframe (live preview) for the Customizer does not ...
2
votes
0answers
27 views

Custom Taxonomy and tax_query Issue?

I am working on Plugin development and my plugin name is plugindev.I have a custom post type called team.I have a custom taxonomy Team_Category which is being registered by this code /****************...
2
votes
0answers
23 views

Subfolder Multisite : optional www subdomain

I have installed a WP Multisite using subfolders rather than subdomains. At the time of installation I was on www.mydomain.com and created 2 blogs: www.mydomain.com/blog1 www.example.com/blog2 If ...
2
votes
0answers
62 views

Does Wordpress contain “default” anti-SQL injection code that responds with a 404 error?

I've been through the “seven layers of the candy cane forest” on this one… :) Our plugin receives data via a POST request. On a particular site that has our plugin installed, we observed odd ...
2
votes
0answers
14 views

How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?

I currently have a theme with OptionTree installed. It is used to create a list of locations which are then visible in a dropdown in the header of the page. The display code with OptionTree looks like ...
2
votes
0answers
242 views

WP 4.4 - domain mapping for sites within a multisite network?

I've spent hours researching this and still no clarity. I have a multisite installation, using subdomains. The base site is: www.foositenewtork.com Sites inside the network are like this: ...
2
votes
0answers
36 views

Creating Custom Taxonomy With mapping to post type

I just want to create a custom taxonomy for my plugin use but this should not be liked with any post-type and also i need to add the menu in my custom admin menu (Which i have already Created). I ...
2
votes
0answers
73 views

Theme Customizer - Choose where widget area appears, to let users organise widgets

I am creating a Theme, and I have a problem with Widgets and Widget Areas. I am using the Theme Customizer to let the user edit the content, colors, etc. I know how to create a widget area. I need to ...
2
votes
0answers
34 views

Text editor on WP caption

I'm trying to add the visual editor to image captions in wordpress. I'm somewhat able to but there are a few issues. Here is a screenshot of what I currently have: You can see "Visual" and "Text" ...
2
votes
0answers
80 views

How should I handle errors within a plugin?

Building my first serious attempt of a Wordpress plugin. I'm not sure how I should handle errors. I really just want to give the user some kind of message that the variable is wrong instead of ...
2
votes
0answers
84 views

Cannot update my options using wp_ajax

I have implemented wp_ajax in on my options page but the value of my options are not getting saved or updated. Here is my form: public function email_settings_form(){ // Set class property $...
2
votes
0answers
176 views

Visual Editor freezing on text highlight since 4.3

Ever since I updated my website to 4.3 my visual editor is freezing every time I try to highlight a piece of text, or even place my cursor someplace random. This only seems to be happening on the text ...
2
votes
0answers
463 views

Wordpress Deadlock Error

I see more of this error these days in error_log. I see that someone asked this question here a year ago but no solution. Please advise what is causing this issue. Already, tried deactivating some ...
2
votes
0answers
289 views

sort by date in Advanced Custom Field

I am trying to filter posts with certain values and sort by the date field using ACF module. I have succeeded in filter with package and type. But when i added date sort, its not working. Please help ...
2
votes
0answers
85 views

Make Category Base Appear in Posts Permalink (but not tags)

I have a slight problem with WP permalink structure. My aim is to make posts permalink appear with a specific category and it's base, for example: domain.com/custom-base/%category%/%postname% And ...

15 30 50 per page