A type of hook that provides a way for content to be overridden programatically

learn more… | top users | synonyms (5)

0
votes
0answers
4 views

Display Post Image Wrapped in Div, Inside Link Tag

So I'm trying to wrap media images published in a post into a custom div, that is also wrapped in a link tag that has the permalink of the media image as it's href. Here's the filter that I've made so ...
0
votes
4answers
27 views

Change Password Strength Indicator names?

Is it possible to change the labels for "Weak, Medium, Strong" etc... in the Password Indicator that's used in the user profile? I've been asked to change the word "Weak" to "OK" since this level of ...
0
votes
1answer
12 views

Add a function call after content automatically?

I want to add a function call in the single post page after the content, one way is that I add it in the single page template, eg. <div id="content"> <?php the_content(); ?> ...
0
votes
0answers
20 views

Category filter with load more ajax

What I am trying to do is to do an Ajax request to filter posts on category click depending on the category id, then apply load more posts by ajax. Problem: when I fire the ajax call by clicking on ...
0
votes
1answer
28 views

Menu disappears with custom post type link

I’m working with Genesis Theme for a while but never got any problems:) This is my first big issue and I dont know how to solve it. I’m making a new website with Custom Post Types and WP All Import ...
0
votes
1answer
34 views

How can I edit comment meta value before it is saved?

I have introduced a custom field in comments form using add_comment_meta() function. I would like to know if there is a way to edit the data of the comment meta just before the post data is saved so ...
0
votes
0answers
14 views

Adding filter menu to admin custom type list to filter by custom field values having issues

I've been working on this for a bit and am having some difficulties because I can't understand for certain what is going wrong and why I'm getting the error that i am. It's hard to tell if it's a WP ...
0
votes
2answers
20 views

trying to create simple plugin to filter categories from all authors

i want to restrict all authors to spesific categories i already done it but via theme function.php, i trying to build as a plugin: this my plugin content: <?php /** * Plugin Name: My Restricted ...
1
vote
1answer
22 views

Wordpress custom taxonomy check box to dropdown

Hi my custom taxonomy name is country.In this A is a country, a-sub1,a-sub2 are states under A. b-sub1,b-sub2 are state under Country B. Now i need to display the country list(parent) box and state ...
0
votes
0answers
9 views

Sort Taxonomy List by Custom Values

I'm trying to make the order of taxonomies adjustable. I've already got the drag & drop working and can put those values to the database. I just don't know how to sort the taxonomy list by other ...
1
vote
2answers
174 views

Pass info from functions.php to plugin

What is the best way to pass some information from functions.php to a plugin? I need to give a user the ability to pass a piece of data from their functions.php file to my plugin. (It can be any ...
0
votes
0answers
16 views

Multiple categories using filters ( same as ?cat=21,183,202,1)

Trying to find a filter or other programatic way of accomplishing multiple categories of posts on one page. I dont want to get_posts() or query(). The desired effect is like this: ...
0
votes
2answers
33 views

Why current_user_can('edit_comment') always true?

I am always getting TRUE for current_user_can('edit_comment'); on two different installations of WordPress (4.2.2 and 4.2.4) no matter what role the user is. Even when the user is logged out. I ...
0
votes
0answers
9 views

Loading ajax does not run through filter the_content

I have created a quiz page with a list of question. I use ajax to load the question content into the quiz. However, only the first question which loaded directly (not through ajax) render correctly. ...
0
votes
1answer
15 views

What would cause the gettext filter to not work for a given text domain?

Inside of a plugin, I'm using the gettext filter to alter strings of a theme so that I don't have to copy the template files over to a child theme and edit them. Also, this isn't always possible since ...
0
votes
0answers
76 views

Exclude password protected posts from pagination

Is there really no simple solution to excluding password protected posts from post pagination? I want to exclude the Quote post format, as well as password protected posts, and display custom HTML. ...
0
votes
1answer
23 views

WordPress Search Custom Meta Field Only

I have a recipe site where each recipe resides in a custom meta field called "recipes". I only want the contents of the meta field searched when users search the site. The problem with my code below: ...
-1
votes
1answer
22 views

WP Members additional fields on user profile

i want to have a limited set of fields during the registration process, but would still like additional fields available for the user to complete in the user profile.these are not required fields. as ...
0
votes
0answers
13 views

Why does TinyMCE generally use pt instead of px?

If you look at the Tinymce examples you'll see that whenever they have a font size picker, they will generally have pt instead of px. This is inconsistent in many places where other systems use px in ...
0
votes
0answers
14 views

How to use a TinyMCE filter?

I am new in WordPress. I am trying to add a filter for tinymce like: function wpdocs_teeny_mce_button( $buttons, $editor_id ) { $buttons = array('bold', 'italic'); return $buttons; } ...
0
votes
0answers
13 views

wp_schedule_event doesn't work

Can someone tell me where I'm going wrong? Images in folder /wp-content/cached_img/ are not delated add_filter( 'cron_schedules', 'cron_add_week4' ); function cron_add_week4( $schedules ) { ...
0
votes
0answers
40 views

Filtering posts in query

I might be way over my head with this one, but I'm trying to get WP to filter posts by two taxonomies (categories & kategoriat) and one custom meta value (date), so you can filter between dates ...
0
votes
1answer
26 views

get_header and hook avoid normal call

I would like to use a custom header, like get_header('new') But I cannot modify the templates easily where the calls are being made due to several reasons. (many files and same code base deployed on ...
0
votes
1answer
22 views

apply_filters to $GLOBALS

I'm building a onepage website, using the Pootle Page Building plugin. With get_page, I show every separate page on 1 page. To target the Pootle Page Builder content, I'm using the following code: ...
0
votes
0answers
5 views

Wordpress Taxonomy Filter always show nothing

I have currently the following problem: I registered a new Taxonomy (called 'mediacategory'), but I got some problems by creating a filter. The script is working with the default taxonomy 'category' ...
0
votes
0answers
41 views

salary range filter doesnt work when value higher than 75 000

I' having a big issue to create a salary range filter... I have one custom post type job - with a custom taxonomy for the salary. The salary are all put as a range' exampple: 20 000 - 40 000 using ...
0
votes
0answers
21 views

Modify first post of any category page [duplicate]

I want to modify or add some text before first post of my few category page. How I can achieve this. Which filter do I need to use.
0
votes
0answers
19 views

add_filter to wp_nav_menu_objects having no impact

I'm attempting to add thumbnails to navigation items as per this question. However, after adding the sample code to the top of my functions.php file, nothing happens. I've whittled the code down in an ...
0
votes
1answer
35 views

Worpress permalink setting

I have a doubt. If book is my custom post type, language is my taxonomy, english is the item in taxonomy , Harrypotter is new post in book with txonomy english. Then how i get the url structure like ...
0
votes
1answer
15 views

Add %taxonmy in worpress custom permalink structure

In default wordpress support %category% tags in custom permalink structure. I need to use %taxonomy in permalink structure .How to do that ? is there any filter are available. Please help.
-1
votes
0answers
30 views

Filtering products without plugins (woocommerce)

I'm looking to filter my products by colour or pattern, i think i can setup the menu however i'm not sure where to begin with the code. If there's any documentation you could point me to that'd be ...
0
votes
1answer
30 views

Dropdown switching subcategories portfolio

I have portfolio on my site and i want add dropdown switching subcategories for taxanomy 'potfolio-types' For example: Category A subcategory 1 subcategory 2 etc... when're in ...
0
votes
0answers
24 views

How to link a custom post type status to the user id

I'm currently trying to modify a plugin : Wp job manager application (addon). It allow user to reply via a form directly to a job proposal. After the user submit form. It's creating a custom post ...
1
vote
1answer
26 views

Filtering The Loop For Single Page and Blog Page

I want to start a div when loop starts in a single page ( also in the blog page ). And end that div when loop ends. Obviously using any filter hook or action hook. Thanks In Advance
0
votes
0answers
13 views

Search and replace post URL's on page output?

Currently, I'm using pretty permalinks for SEO purposes like this: http://example.com/sample-post. This is great for search engine ranking, but now I am finding this is not so great for mobile app ...
0
votes
0answers
22 views

Are immediately-called actions not usable in themes?

If there is a filter or action called immediately in a plugin file (not on 'init' or 'wp' action etc.), is it at all possible for a theme to filter it? Looking through wp-setting.php I would assume ...
0
votes
0answers
21 views

Add custom filter to register data in array

I would like to register a multi arry of data in a plugin and allows any developper to add new value to the array. This multi array contains a name, and different value like this: class ...
0
votes
0answers
20 views

Email is not sent while adding add_filter in wpDiscuz - WordPress Comments plugin

Currently i am using a wordpress plugin named "wpDiscuz - WordPress Comments" which sends email notification to the user list present in "wc_subscriber" table, but i have hided the default code which ...
0
votes
0answers
13 views

How to flter a variable result in the Profile Builder plugin?

I'd like to understand filters in WordPress plugins as well as I understand actions. Is it possible to filter a variable being returned by a plugin? In this case, the Profile Builder plugin for ...
0
votes
1answer
25 views

Hook for altering the content of all wp mails

Hi i want to set email template for all mails for my site . I know how to set up mail template and i set mail template for each of my mail by editing the code ie wp_mail( $recipient, $subject, ...
0
votes
0answers
20 views

Populate Multiple dropdown

It's a bit complicated here. But I'm in real trouble right now. Let me explain I want 3 dropdowns populate by order. unless the first it will be disabled. product year (product custom taxonomy) x ...
0
votes
1answer
14 views

Unable to get Wordpress's apply_filters('site_url') to return a https scheme

I am in the middle of migrating a Wordpress site to being entirely https://, but I am having trouble with the login page. The login page itself is loading with the https:// scheme, but the form ...
0
votes
1answer
16 views

changing size image within the content

I'm trying to get my images inside the post may larger than 800px ; For this I took a function that resizes image here and I'm trying to create a function to my thumb inside the post come with size ...
0
votes
0answers
45 views

How To Sort and Filter Admin Custom Taxonomy Columns

I have a custom post-type with associated custom-taxonomies – how can I make these custom taxonomies sortable in the custom post-types admin/list view header (similar to how dates is sortable)? ...
0
votes
0answers
23 views

Modify content if has shortcode

I have a post or page , the content of that post or page is similar to the following Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et ...
1
vote
1answer
27 views

body_class filter - Is there a better way to write this code?

I would like to add a body class depending on what sidebars are active, and a body class if my before-header widget area is active. I have got it to work, but I would just like to know if there is a ...
0
votes
0answers
15 views

hook for adding a new column in woocommerce subscriptions

I try to add a new column in Woocommerce subscriptions, I would like to know what hook i will need to display my new column Thank you Nilda
0
votes
0answers
13 views

Best way to filter posts being displayed on the fly

I got the following post structure: The search box is to illustrate what I want to achieve. CPT Videos: Videos being displayed in the image. CPT Artistas: Another post type for the artists. ...
0
votes
0answers
25 views

add_filter Add To Content, Not Replace Existing Filter Function Content

If I am trying to add content to the content generated by a plugin/core filter function - how is this accomplished? The specific situation I am attempting to accomplish - I want to add the widget ID ...
3
votes
1answer
76 views

How can I get next/ previous post links to order by a filter (by the last word of the title)?

I am trying to use the next/ previous post link functions by Wordpress to move between posts of a custom type based on the surname of a person. The custom type represents a person with a post title ...