0
votes
2answers
431 views

add_rewrite_rule to remove /category/ from permalink

Hi I have many permalinks across my site that looks like this: http://www.mysite.com.com/market/category/slug/slug/slug/ http://www.mysite.com.com/market/category/slug/slug/ and would like to hide ...
0
votes
0answers
10 views

How can show my images style from editor

I have problem when edit an news in post editor, and set the images from editor align left and open site, i cannot see the image in left said. How can set the post style from editor not from style
3
votes
1answer
1k views

redirect out of wp-admin, without losing admin-ajax.php

I'm trying to keep all non-administrators out of the Wordpress admin panel by using a wp_redirect inside of an is_admin conditional. The problem is that a side effect of this if that non-admins can no ...
0
votes
1answer
1k views

Custom post type: can't enable comments by default

I want to enable comments for custom post types just like they are for standard posts, but can't seem to get it to work. In functions.php, as part of registering my custom post type, I have this: ...
-1
votes
0answers
10 views

WooCommerce Conditionally add text below price on Products [on hold]

Trying to set a custom text message below a WooCommerce product, using the woocommerce_get_price_html filter with a conditional to ceratin products in an array - but it is applying the $addedtext ...
-1
votes
0answers
8 views

Plugin to display posts of a specific category, similar to a blog [on hold]

I am creating a magazine style template for WordPress and it has a few different sections displaying a few posts of each category. Kind of like this template: http://gazette.seoresearch.com/ . Is ...
0
votes
0answers
174 views

Get canonical link

Hi I know get_permalink returns the URL. Some of my posts are redirected and at the same time I update the canonical link to the redirected post URL - (normally relates to post updates). Is there a ...
0
votes
2answers
29 views

Sort tags by first letter or included number

I have 200 tags i am building movie directory website some tag as example The Wolf of Wall Street (2013) Goodfellas (1990) Catch Me If You Can (2002) Monster (2003) The Bling Ring (2013) Devil's Knot ...
-2
votes
0answers
7 views

Wooslider Overlapping Sidebar on First Frame [on hold]

Doing some design edits on my friend's website and the first slider is overlapping the page content and sidebar. When the additional slides pops up, it goes back to normal. Can anyone offer me some ...
4
votes
1answer
3k views

If current user is admin or editor

How can I check to see if the current logged in user is an admin or an editor? I know how to do each singularly <?php if( current_user_can('editor')) { ?> stuff here for editors ...
0
votes
0answers
7 views

Changing link output of posts

I'm using the X theme & there is a load-content.php file that uses a function to show recent posts & portfolio items. The code is below; I'm trying to make all links go to a specific page ...
0
votes
0answers
8 views

Custom taxonomy URL throwing 404

I have a site that I inherited. It uses a custom post type(products) with a custom taxonomy(product_categories). http://430designs.com/sisco/our-products/ If you go to the page, I am printing out ...
0
votes
0answers
17 views

Auto adding product meta on publish

I currently have this function: add_action('transition_post_status', 'wpse_110037_new_posts', 10, 3); function wpse_110037_new_posts($new_status, $old_status, $post) { if( $old_status != ...
0
votes
1answer
13 views

Displaying taxonomy icon outside archive page

Here is my problem. I'm working on a video website and we have different categories for each video. We have setup a custom post type called "videos" in which we use the different taxonomies to ...
1
vote
1answer
9 views

How to modify a taxonomy that's already registered

Today I needed to change the arguments on a custom taxonomy that was already registered by a third party plugin. Specifically I wanted to set the show_admin_column argument to true and change the ...
0
votes
1answer
419 views

WordPress import not importing custom taxonomy

First off, feel obliged to say I've posted this already in the WP Support Forum (http://wordpress.org/support/topic/wordpress-import-not-importing-custom-taxonomy) hoping to have more luck here. I'm ...
0
votes
2answers
52 views

Wacky taxonomy in wordpress

I have my main site, www.whatsthatbug.com, and a test site, test.whatsthatbug.com. They are identical as far as I can tell - same version of wordpress, same plugins at the same versions, same theme ...
0
votes
1answer
19 views

How can I use WP_Query to get posts from current blog on a multisite installation?

I'm trying to fetch posts with category name "owners" ordered by menu_order. I've done this on a single installation and it works great, but on my multisite installation, it fetches posts from all ...
-2
votes
0answers
7 views

Apply Element to Filtered ACF Value [on hold]

I'm trying to place an element (corner ribbon) on certain term images in my archive. I'm using Advanced Custom Fields to assign a value to certain terms. The code below however places a ribbon on ...
0
votes
2answers
34 views

Count Title and Post Characters

I need to get a total count of characters for post titles and post text characters. Are there any build-in WordPress functions available for that? My posts are paginated so the numbers for post text ...
-1
votes
0answers
13 views

w3 total cache minified .css fails with error 400 [on hold]

W3TC minify is enqueueing this stylesheet 09N3Li0uyc91y88rKQYA.css on http://myideallife.com. The request errors every time with "HTTP/1.0 400 Bad Request". HTTP/1.0? In addition, the file does not ...
0
votes
0answers
12 views

Display date of custom post type as Friday 19/9/2014

I have error in display date. In Outlook, my date is like "Friday 19/9/2014", and when opening it from Outlook, it shows 1979. My function to display data in Outlook:- function get_ical() { ...
3
votes
2answers
250 views

update_post_meta not saving when value is zero

I have a problem with the update_post_meta function. I have a user submitted value, which I pass via $_POST and then saving to post meta. All is working fine, but when the value is '0' the post meta ...
0
votes
2answers
243 views

Multi language for static website

I built a very simple/informational/static website using WordPress. I know WordPress is meant mostly for blogs but I used it to build a static website nonetheless. Since I have English, French and ...
0
votes
0answers
14 views

Gallery random image sizes

I'm trying to get a masonry layout to work with the standard [gallery] shortcode. This is the code I have in my post-gallery (for the gallery post-format). echo '<div class="zephyr-gallery">'; ...
0
votes
1answer
17 views

Need to get array of images ID attached to post

How can I obtain ID of images attached (and not necessarily inserted) to a custom post type ? I want to pass this argument in order to use this images in soliloquy slider
2
votes
1answer
40 views

Is it possible to save/modify a post without calling the “save_post” action hook?

There is a save_post hook that is run when you save a post. In fact, revisions and autosaves also call this hook. Even if you simply change the status from published to draft it triggers the save_post ...
0
votes
2answers
235 views

Metabox does not show in custom post type

I am trying to create a metabox input field in a custom post type and it does not work even if I followed the instructions the best I could. I am not a PHP dev so I guess it could be just a small ...
0
votes
1answer
10 views

Trying to rewrite a URL to an existing URL with htaccess

I have a wordpress site up and it's been up for a while. Recently I was asked to change the URL of one of the pages. The current URL is: http://url.com/blog/category/newsroom They want the URL of ...
0
votes
0answers
8 views

Sort tags by first letter or included number v 2.0 [duplicate]

my previous question Sort tags by first letter or included number I found this solution <?php $tags = get_tags( array('name__like' => "A", 'order' => 'ASC') ); foreach ( (array) $tags as ...
2
votes
1answer
573 views

Query by meta_key and order by meta_value_num return orderby date

I'm trying to use the orderby and custom WP_Query features of wordpress. It works nicely to select item by their meta and to order by date. Unfortunately, it seems that I could not get the post ...
0
votes
0answers
12 views

Make a select field directly beside a text input field with the Settings API

I'm building a plugin that needs a very simple options page. I'm asking the user to enter the default width and the default height that they want the plugin to use for their embed. I also want to give ...
1
vote
1answer
20 views

Are posts updated or built from revisions + autosaves?

When editing a post in the admin I see records being added to the database to document my changes (here is part of the hooks I'm logging): ... http://local.dev/151-autosave-v1/ clean_post_cache ...
0
votes
0answers
4 views

Remove “#” in slug of filterable Portfolio

This is the site im working: http://executrain-qro.com.mx I'm using a filterable portfolio and how you can see the slug is rewritten depending on the category ... the problem is that Internet ...
0
votes
1answer
52 views

Selecting posts older than the current Unix epoch timestamp

I am trying to perform the following query, which originates by the fact the post's 'date' and 'time' are entered as separate custom fields. $args = array( 'post_type' => ...
-1
votes
0answers
12 views

Hyperlinking from outside to inside [on hold]

How do I create a simple outside hyperlink for say flyers and business cards that will link directly to a specific page inside a WP website?
-1
votes
0answers
21 views

Why wordpress plugin shortcode doesn't work properly with IE

I recently working on a wordpress, plugin, it already reached a final stage, and all it left is cross browser compatibility, the problem is why shortcode doesnt work properly With IE. Below are My ...
-1
votes
0answers
15 views

Display deepest child category for current product in woocommerce [on hold]

This seems like it should be easy to do but I haven't been able to, and cannot find any posts regarding it. I can display all the categories associated with a product, or the top category, but how do ...
0
votes
1answer
844 views

How Can I limit the visible part of the short-description on the Category page?

How Can I limit the visible part of the 'short description' in the Category Page? I found the code in theme/woocommerce/content-product.php, but whatever I try doesn't do a thing. <?php ...
0
votes
1answer
15 views

Add Function For Instances of Custom Text in Multiple Category IDs to display in post content

I created an extra content file and inserted custom text for a category (and relevant to that category) to display (on a random basis) in all posts belonging to that category and it is all working ...
0
votes
2answers
15 views

Serializing User Role for update_user_meta

I've created a custom user role and am attempting to change the users role from CUSTOMER to ADVOCATE on purchase of a particular product (using WooCommerce). I'm really close but struggling to get the ...
1
vote
0answers
16 views

Added Custom Post Type and the View Option Doesn't Work

I would like some pointers on fixing the Permalinks structure for a custom post type I added. Like many Custom Post Types this plugin uses the Custom Type Meta Box, and sets a featured image. All of ...
0
votes
0answers
12 views

wp-fb-autoconnect side effects [on hold]

I have a contact page which contains form fields like first name, last name etc, when I am submitting this form it is working fine. Later I installed wp-fb-autoconnect plugin in my wordpress site. ...
1
vote
2answers
71 views

Where to use $post global variable?

I am confusing to use $post global variable. Is it use inside loop or outside loop? What is the advantage to use it inside and outside loop?
0
votes
1answer
11 views

Redirect after user changes password

I'm doing a custom form where the user can change is password. After submission and if the password is according to the rules I save the new one, overriding the old one, to the database, delete the ...
0
votes
0answers
11 views

Submenu links open to the right, I need them to open downward

I am working on a WordPress site for a client, and they would like me to change the way the menu behaves while it is hovered over. Right now, when you hover over a parent link, the child links will ...
0
votes
1answer
280 views

Include content from one page to another

I'd like to include content from one Page (named "contact_text") to another Page in a specific spot (both of these are WordPress admin pages). I've followed this Stack Overflow thread. However I ...
0
votes
1answer
19 views

Sanitize or treatment of string in editor via shortcode

I have a string of data that's getting passed to the page via shortcode, but the original developer of the shortcode did not account for how I'm necessarily planning on using the data on the page, ...
-1
votes
0answers
12 views

Genesis - My footer disappear. Disable all plugin and remove all widget (sidebars) [on hold]

My site is http://balodauho.com/khuyenmai/ - running on Genesis, Magazine Pro Theme Just now I enter some PHP tag to a text widget. After that, all of my widget at footer disappear. I freaked out and ...
0
votes
1answer
25 views

update_post_meta and get_post_meta not working

I am trying to get the input from a textbox and display it upon update. I don't know if the update_post_meta or get_post_meta is causing the problem. Code //Metabox Hook ...

15 30 50 per page