A type of hook that provides a way for content to be overridden programatically
4
votes
1answer
107 views
Store source permalink on XMLRPC calls
In a theme I'm developing, I need to link to the source post when the post has been stored using XMLRPC. That implies that every time Wordpress asks for a permalink (using get_permalink()) the theme ...
3
votes
1answer
373 views
Change html structure of all img tags in Wordpress
I have a Wordpress blog and am trying to implement the foresight.js image script. In short, I need to target all post images, swap out the src, width, & height attributes with data-src, ...
3
votes
1answer
283 views
Preview Image Path in Admin Section
So I have run into a little glitch. i have a custom path for uploads and it works. the files get saved to the right place, etc. The problem I have is the 'widget box' in the admin section. immediately ...
2
votes
1answer
88 views
How can I customize the wp_list_categories
I have a list of categories in woo-commerce which I'm trying to customize to be displayed to look like the following image.
I created the above image using normal HTML and css however I would like ...
2
votes
1answer
30 views
Trying to wrap <span> around first word of multiple word strings with a widget_title() filter, only works on two word strings and not more than two
I am trying to wrap a around the first word of multiple word widget titles. I have used the answer from here:
...
2
votes
1answer
144 views
Search results sorted by post types
I am working on a site with several post types - 4 to be exact - and I am trying to setup the search results page to have a filter/sort the results by post types.
For example, when a person searches ...
1
vote
1answer
59 views
add img class to native wordpress galleries
Trying to add an img class = "the image alt field" to the images in a native wordpress gallery so i can use jquery isotope to filter the gallery. I could use the image alt field or the description ...
1
vote
1answer
16 views
how to use force_filtered_html_on_import in add_filter?
This is my situation. I have two plugins, one plugin will read a remote XML file and downloads content then it calls a function on another plugin to do the actual importing of posts to the WordPress ...
1
vote
1answer
62 views
Gravity Forms field entries into wp_query loop
I have a simple function that filters the page content when form (ID 18) is submitted. It simply displays the entry of field (ID 13)...
add_action("gform_after_submission_18", "set_post_content", 10, ...
1
vote
1answer
47 views
list category posts under its item in menu
When adding category to Menu, I need it to list all the item that belong to that category in separate UL automatically. like this
http://i.stack.imgur.com/ulOOS.jpg
Of course I can do that manually, ...
1
vote
1answer
443 views
ajax for filtering posts by category in wordpress loops
I've been looking around for a way to filter my posts on http://www.waziproject.com/wazimagazine/ without reloading the page.
So my question is if anyone can help me out to turn the following into a ...
1
vote
1answer
406 views
How to add sub-menu to a menu generated by wp_nav_menu by using plugin
I have a menu generated by wp_nav_menu which look like
<ul class="nav-menu" id="menu-top-nav">
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-43" ...
1
vote
1answer
64 views
Give “Read More” precedence over excerpt() word count
By default, the_excerpt() displays the content before the <!--more-->, trimming it at ~50 words.
Is there any way to prevent this trimming functionality when the <!--more--> is present, ...
1
vote
1answer
75 views
Admin comments and user restrictions
I have set a bunch of roles within wordpress with the help of the "members" plugin.
But the capabilities regarding the comments moderation are very limited ("manage_others_comments" or not)
What I ...
2
votes
0answers
31 views
How to implement time filter to show random post 1 month for one category and 3 months for other categories
I started to work on one website after another developer and there is problem with his "popular widget" which is basically showing 3 random posts from category. There is some Switch statement which is ...
2
votes
0answers
81 views
Buddypress: Edit activity when new blog post
I am trying to edit the activity on Buddypress (1.7 and running latest Wordpress) for when a new blog post is created. By default it displays the excerpt and shows any attached images, it also strips ...
1
vote
0answers
50 views
Changing image URLs in media library
On a default wordpress install, the media library is located at:
/wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server.
This filter
...
1
vote
0answers
22 views
Alternative to the filter comment_reply_link
I'm making a plugin and need to add a link to every comment on the front-end. I've used the filter comment_reply_link but that filter doesn't work when we're on the lowest level of threaded comments ...
1
vote
0answers
78 views
Walker_Nav_Menu doesn't work in wp_page_menu_args filter
I need to hide certain nav items from the menu (based on the password protection functionality) and I'm having trouble getting my custom Walker to work. In fact, I can't even get the standard ...
1
vote
0answers
59 views
Filter list by a unique meta value dilemma
I'm been racking my head at this for a while now, and I can't figure out how to fix the code.
Here's the issue;
I found a snippet of code online to filter my post results in edit.php based on ...
1
vote
0answers
31 views
Sorting a specific taxonomy by archive date using URL
OK, so I'm looking for a way to sort a specific taxonomy by archive date using the site URL.
Say the custom taxonomy ("sort") value is "fruit" then then you would currently get all the posts marked ...
1
vote
0answers
18 views
What is the purpose of $merged_filters?
Savvy WordPress user here, or at least trying to be. I have the hang of hooks and filters with the code in WP's plugin.php
The only thing I cannot seem to understand is the $merged_filters global. ...
1
vote
0answers
76 views
Filtering get_permalink in Jetpack / ShareDaddy
I recently changed my permalink structure from /YYYY/MM/%post_name%/ to /%post_name%/, and lost my tweet counts and likes (provided by Jetpack) in the process.
To fix this, I want Jetpack to use the ...
1
vote
0answers
56 views
wp_mail works with add_action('save_post', …) but not an ajax action
I have two actions. One is after saving a post, so add_action('save_post', 'on_any_post');
I have a second action triggered via AJAX, so
add_action( 'wp_ajax_nopriv_saveTaskPriority', ...
1
vote
0answers
196 views
Refine/Filter the Search Results by Category
I am currently creating the process of a function which allows one to refine results, Namely by category. Similar to themeforest.net refine the search results.
When i gave as search term "Hello" and ...
1
vote
0answers
66 views
Admin search post meta
I have currently built a property database using WordPress and am purely using the back-end for the whole job. I am listing all the properties and used a plugin called "Easy Filter" to add custom ...
1
vote
0answers
76 views
How to display term description in empty terms archive?
I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least ...
1
vote
0answers
91 views
proper use of the_content filtering
this is a bit difficult without posting scads of code, but my question is: What are the benefits of filtering through apply_filters('the_content', 'anything');, and given my example loop, am I ...
1
vote
0answers
136 views
Querying posts with meta value that begins with a certain pattern
I am trying to create a search filter using meta_query. The only problem I'm having now is that I can't compare with wildcards. I think that's how you word it?
$keyword = 'sos';
$tlds = ...
1
vote
0answers
129 views
define orderby URL with meta_key=post_views_count
I want to make an url with meta_key=post_views_count.
E.g: http://www.mysampleweb.com/?meta_key=post_views_count&orderby=meta_value&order=DESC
So the posts should be ordered by Views.
...
1
vote
0answers
188 views
add_filter with retrieve_password_message() not working in plugin, but works in functions.php
I'm trying to use retrieve_password_message to change the lost password email. The problem is that when I use it in a theme's functions.php, it works great, but when I put it into my (activated, ...
0
votes
0answers
22 views
Filter posts by multiple checkbox categories
I would like to set up a widget to filter my post by categories. Let's say, I do have two different categories, "Countries" and "length of stay" with sub categories. Here is an example of what I have:
...
0
votes
0answers
13 views
restrict_manage_post to remove filters
Using restrict_manage_post, is it possible to remove default WP-List-Table filters? Example that I tried, but failed below:
add_action( 'restrict_manage_post', 'remove_cpt_filters', 99);
function ...
0
votes
0answers
36 views
Custom excerpt_more filter not working when <!--more--> tag is present
I'm doing this inside Thesis 2, in case that matters.
I am using the_excerpt(); on my blog page to get the posts. And I'm using two custom filters:
function custom_excerpt_length( $length ) {
...
0
votes
0answers
11 views
Filter by Author on Category Pages
I'm looking for a solution to filter/sort posts by author on category pages/archive pages, ideally by means of a drop-down menu.
I've searched the Wordpress plugin repository but cannot find any ...
0
votes
0answers
22 views
How to filter a job search by city and state in a job board like Jobroller?
I'm working on a job board for a client using Jobroller. The client wants on the sidebar buttons representing states and when clicked on, display job listing based on that city. I read that Jobroller ...
0
votes
0answers
40 views
Wordpress - ABC filter/Pagination
I would like to list out the alphabet on a custom post type archive page, and by clicking on a letter in the alphabet it would link to a url that only displays posts that begin with that particular ...
0
votes
0answers
25 views
attachment_fields_to_edit stopped working in plugin following 3.5 update
Following an upgrade to WP3.5 Elvin, a plugin that duplicates images (by duplicating metadata, not by actually copying the image) stopped working.
The plugin, BDN Duplicate Images, is just one file ...
0
votes
0answers
58 views
custom styling for woocommerce categories
I am using hooks and customizing the template files to use woocommerce. On my products page I want a list of categories along the top like this. I would even settle for a neat list of them where my ...
0
votes
0answers
58 views
How to add custom button to new media upload interface
I am developing a plugin and i want to add my own button to the wordpress media upload interface (WP version 3.5). Right next to the standard 'insert into page' button, i want my button to be there, ...
0
votes
0answers
116 views
Some filter adding custom post types to my WP_Query
I have a strange problem. I am using WP_Query inside a shortcode callback. Say I have 10 custom post types and I want to show the most recent post from 4 of them. I specify them as
'post_type' => ...
0
votes
0answers
12 views
WordPress MU Sitewide Tags restrict by category
I want to restrict or stop certain categories from being "sent to the "tags" blog.
The advice (on another forum and from one of the devs) is as follows (but i cant hack it!) :-
"hook into save_post ...
0
votes
0answers
69 views
Admin Filter by custom field
I use this for make a filter for post in my admin, on a specific custom post type,
but it don't work, the query don't update and i get an empty list
add_action( 'pre_get_posts', ...
0
votes
0answers
53 views
Filter BuddyPress Member Domain Slug
BuddyPress uses the Username(login name) as the member domain slug. (mysite.com/members/sarah)
I would like to filter the way BuddyPress handles this and set it to use the Nickname(nicename) instead.
...
0
votes
0answers
67 views
How to build a search filter?
Can annybody tell me how can i build a search filter.. were do i start.
I want to filter the categories for 3 post type's
Ex:
I have Movies(posts) with categories
Year: 2011,2012,2013
Gene: ...
0
votes
0answers
31 views
How to change all titles of a specific category?
I want to change all titles of posts from a specific category to a static one and don't want to change the rest.
I have tried this code (based on this question but it doesn't work:
...
0
votes
0answers
55 views
Custom Post Type - FIlter by year, THEN by category
Although I don't necessarily believe this to be a good idea, the client has asked this of me.
It's cake to filter by category and then filter by year (as really it just adds "?y=2011" to the end of ...
-1
votes
0answers
21 views
Hyphens are causing a blank result
I'm having issues with hyphens in my slugs from a tutorial I'm trying to go through... http://wp.tutsplus.com/tutorials/theme-development/create-a-quicksand-portfolio-with-wordpress/ and I'm having a ...
-1
votes
0answers
14 views
Adding custom filters like size , color to url in wordpress
our website address is similar to this http://example.com/wp1/ on click of filters like size:32 and color:green , my url should look like http://example.com/wp1/products/tv/32. Please suggest code ...
-1
votes
0answers
42 views
Is it possible to dynamically add widget areas?
I am creating a very custom and unique theme that uses posts as sections for the front page. The posts all have a configured style to them, so I am wondering if it is possible to dynamically create ...

