0
votes
0answers
21 views

What does “_x( ” and “__(” mean in Custom Post Type Arguments [duplicate]

Can someone let me know what does "x(" and "_(" mean in Custom Post Type? For example at following code: 'name' => _x( 'Products', 'post type general name' ), 'add_new_item' => __( ...
0
votes
2answers
433 views

Theme not calling Jquery properly

I am developing a theme and I have called jquery along with other JS files from a theme-enqueue.php file. For some reason only the Jquery file that is hosted on googles servers is adding the theme URL ...
1
vote
1answer
66 views

Multiple URLS per post non-ascii

I am looking for some best practice / practical advise on a particular URL use case. I am finding myself using a lot of non-ASCII characters in my URLs. This doesn't really make it easy for users of ...
0
votes
1answer
384 views

Return Taxonomy Name for Each Term

I am returning a list of the terms from three different taxonomies. $terms = get_terms(array("air-categories","web-categories","ink-categories")); I get the list and I need each to link to a ...
1
vote
1answer
37 views

How can I send edits to my blog programmaticly?

I have started a very simple wordpress blog for a hockey pool I run. The site is located at: http://thekeeperpool.wordpress.com/ I manage the actual stats counting and player movement using a local ...
0
votes
1answer
327 views

How can I add a filter to a particular post format?

I have several post formats and I want to use add_filter selectively, applying the filter to some of the post formats but not all. When I do this in my functions.php file it affect all the post ...
0
votes
0answers
710 views

Restrict download files from not generated Urls

I use a plugin in WPMU that encrypt all downloads urls in wp-content/uploads/ : The downloads can still be accessed if users know the path to the file: e.g. ...
0
votes
1answer
517 views

Empty string supplied as input when parsing content

I have this code: <?php function mb_find_my_image( $content ) { if( is_home() ) { /* if is home start */ $dom = new domDocument; $dom->loadHTML($content); ...
0
votes
2answers
109 views

Author List page: Exclude based on last post date not working correctly

Using the following code from this post I thought I had found the answer to my problems of showing authors that have posted in the last 6 months. Unfortunately the way the function checks the date it ...
0
votes
3answers
504 views

WP 3.5.1 password protected not working for post

After adding right password fornt side wp, post not open and it's say Not Found Apologies, but the page you requested could not be found. Perhaps searching will help. how to solve this?
0
votes
1answer
132 views

Get only X number of categories

How can i get only x number of categories using the_category. I triesd a few thing but none worked. I dont want to use get_the_category
8
votes
1answer
10k views

How to enqueue style before style.css

How do I enqueue a .css file before style.css is loaded? Or make the default style.css dependant on another .css file? I'm trying to load a .css reset, which style.css would overwrite. Here's what I ...
0
votes
1answer
96 views

List of filtered Events is breaking paging?

I have a list of events that are displaying in date order, with events in the past being hidden. The issue is that in total, there are 3 pages of events, but once the past events are hidden, there ...
1
vote
1answer
38 views

3 blogs same installation, without WP MU

I've to create 3 blogs (different DOMAINS) on the same wordpress installation (I cannot use WP MU, unfortunately) so I came out with the idea that I could use categories, instead, so... every blog has ...
1
vote
1answer
132 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 ...
0
votes
1answer
489 views

loading custom registration template

I read this tutorial, here the author names the template custom-register.php and puts it in the theme dir and doesn't explain about how it's loaded by WP, I did the same way but the file didn't loaded ...
0
votes
1answer
628 views

Change Post Status From Front End

I am using the code in a page below to let users delete their posts from the front in. I have wp-admin totally blocked off to site users. What i want to do is when they click the delete button the ...
2
votes
1answer
517 views

wordpress custom post type remove duplicate menu item

I've registered a new content type with following - register_post_type('news', array( 'labels' => array( 'name' => __( 'News'), 'singular_name' => __( 'News'), ...
0
votes
2answers
555 views

If no featured image, add one of the default images into DB

I'm trying to set multiple images (image A,B and C) from one folder (folder X) at random into the database as a default featured image when there's none one set. So on the main page I have all posts ...
0
votes
1answer
53 views

Different layout based on post amount?

Is it possible to change the layout of the query posts depending on how many there are? So simple query page listing posts... Up to 4 posts show them in a list. If there are 4 posts and over show ...
0
votes
1answer
353 views

How to use Facebox in WordPress theme?

I am trying to add Facebox (a lightbox type image viewer) to my WordPress theme at but presently the images are not loading. I have tried hard coding this and also using the Facebox WP Gallery plugin ...
0
votes
1answer
474 views

Distinguish profile user and admin user IDs / get ID of user being edited

On the user-profile page of my site I want to allow admin role users to be able to edit specific user-meta fields of subscriber role users. How can I distinguish between the two user IDs. The ...
-1
votes
1answer
2k views

Consolidate 'add-to-cart' buttons into one 'add-all-to-cart' button

What I am trying to achieve is to have one add-to-cart button that will add the selected quantity of multiple products, featured on the catalog page, into the basket. Here is an image of what I aim ...
-5
votes
1answer
102 views

make classified ads as a spam?

i have tried to make classified as a spam. i am using another wordpress classified ads plugin(AWPCP),i have put front-end side button in browse ads page to move ads spam. so,suggest me any plugin or ...
2
votes
1answer
2k views

Custom Post Type / Taxonomy Slug / Post Title with post type archive

I've tried plugins, read through stack and spent hours on this, and I just can't seem to find a way to achieve what I want. I can achieve the following permalink structure: ...
0
votes
4answers
2k views

Theme Customizer not loading JS for live preview

I am currently working on adding options to the theme customizer. For the last two hours I have been trying to get the live preview working and I am trying figure out why my theme isn't loading the ...
1
vote
1answer
113 views

SlideDeck 2, make back-end visible for admins only

I'd like to make the back-end of the SlideDeck 2 plugin visible for admin users only. Also, I'd like to remove that "Insert SlideDeck" button from the editor. How can I do this?
0
votes
0answers
358 views

add_theme_support( 'post-thumbnails', array( 'post')); is not uploading the file

So I used the codes below in the functions.php add_theme_support( 'post-thumbnails', array( 'post')); set_post_thumbnail_size(100, 75); And then in THE LOOP I called: <?php ...
0
votes
1answer
68 views

Filter everything from content except output of a shortcode

Is it possible to filter the output of either the content or excerpt so that I only get the the shortcode output and so that if a user enters more than the shortcode the rest of the content for that ...
0
votes
1answer
3k views

Google PageSpeed: Avoid landing page redirects?

I am getting the following notice from Google PageSpeed: Avoid landing page redirects To speed up page load times for visitors of your site, remove as many landing page redirections as possible, and ...
0
votes
1answer
410 views

WP Paginate not working properly

Im creating a WP for a custom type post in a page template: <? global $paged; global $notquery; $temp = $notquery; $notquery = ...
0
votes
2answers
216 views

customize wordpress database error page

UPDATE Initially I suspected this was related to the Wordpress framework I'm using (Genesis) or to my child theme functionality, but turns out that's not the case as I was able to get this to work in ...
0
votes
1answer
100 views

Remove “Published On” inside wp-admin

How do I remove this? Preferaly would like to do an action hook inside functions.php to remove this. I don't want the editor to see/edit when they published the article. Thank you for your help.
0
votes
0answers
83 views

wp custom field image and text multiple time

from previews example link try to achieve this link this is working but is recreating double time the $text and $image and how can i create a new table to wrap every time a call the text and image? ...
1
vote
0answers
102 views

Wordpress capabilities on pending post status

I have user with contributor user role. In default if you publish article as contributor you can only view it and you can't delete or edit it. But when you submit new post for review, you can do all ...
3
votes
1answer
1k views

Wordpress Custom Post Type Admin Page really slow

(I've posted this on the normal stack exchange, but it was suggested that I put it here too. Glad to know this place exists... :)) So, I've been all over the internet trying to figure out what is ...
0
votes
1answer
59 views

I want to add a custom field in the rss title of each post, but don't want it to be shown on the site

I've seen that other sites have done this but didn't manage to do it myself. I have certain custom fields for each post and I want one of these custom fields to be shown in the RSS feed in the title ...
0
votes
1answer
63 views

How to show a users bio on a page

I'm fairly new to Wordpress. I have users that create profiles on my site and one of the sections is their bio. How can I take this information and display it on lets say a "users profile page". ...
0
votes
1answer
376 views

P3 Profiler and Yoast SEO plugin

I have profiled my blog with the P3 Plugin and it pointed out that Yoast SEO slows down the site a bit. I then found out that the biggest performance penalty is paid when you "force rewrite" the ...
0
votes
1answer
258 views

Redirect User to custom URL after registering

I modified the default Wordpress registration page to include a role and also payment fields. I am adding a Gold Member feature the my website, which requires payment. I'd like it that after this ...
0
votes
0answers
184 views

Special Query: Title, Terms, Content - %LIKE%

I'm working on a them theme that is search-heavy, and my users are putting huge priority on an improved search function. I think I will have to use a special direct query to search these things: ...
1
vote
2answers
431 views

Is it a good practice to change media settings on theme activation?

I want to change default image sizes when user activates my theme so that the default medium image width is exactly the width of page content (for pages with sidebar) and the large image size fits ...
0
votes
1answer
341 views

Hook to be used when creating a database table

I read the Codex and some other tutorials describing the process of creating a new table for WordPress. I thing that the steps are pretty straightforward; however, I'm encountering a small problem. ...
0
votes
1answer
265 views

Jetpack API for Wordpress Network

Wordpress provided a lovely Json API with Jetpack. I cannot seem to to find a way, or documentation on getting data from a multisite wordpress install? It seems to fail on sites like ...
2
votes
2answers
186 views

I need some direction on how to have a sidebar based on meta rather than page

I'm working on a plugin that allows the user to create "page/post types", customize the type style, then tag a page/post with that type. All of this works. My problem is this plugin also needs to ...
4
votes
1answer
2k views

Programmatically set page_on_front

I am trying to programmatically set the 'page_on_front' option with the id value retrieved from the get_page_by_title command... $homepage = get_page_by_title( 'Front Page' ); ...
0
votes
2answers
73 views

Removing the comment function within wordpress

I'm using wordpress for my company website but I want to remove the comments function completely so not just by unchecking a "alow comments" within every page. I did some googeling and the said I was ...
1
vote
1answer
280 views

Maximum file upload limit in php.ini have no effect on wordpress

I have changed the upload limits in php.ini sudo sublime-text /etc/php5/apache2/php.ini upload limit, post limit and something else, I restarted apache2 the phpinfo shows me both upload and ...
0
votes
0answers
49 views

Display all page numbers at the same time

WordPress only shows a few page numbers at a time and I have to keep clicking on the "right" arrow to advance one page at a time. I have 31 product pages, each with many products so it takes "forever" ...
0
votes
2answers
99 views

wp_enqueue_scripts hangs

In the following snippet, when I add the wp_enqueue_scripts call, the page freezes. What am I doing wrong? function my_enqueue_stuff() { if ( is_front_page() ) { wp_enqueue_style('style', ...

15 30 50 per page