0
votes
1answer
30 views

Different site languages for different users

Is there a way to have the WordPress site language - specifically the language used in the admin areas - be different for different users? I would like to have administrators be able to select either ...
0
votes
1answer
42 views

Add category links?

Hi i’ve been trying to add category links as per the image attached. with categories ‘music’ ‘thoughts’ ‘products’ just below my banner. but i have no idea how to do it. is there a fast way of going ...
0
votes
1answer
52 views

Admin bar missing from frontend view

The admin bar has disappeared from the front-end view of my site. I have checked the profile settings and they are set to show the admin bar. I cleared the cookies for the site. I disabled all the ...
0
votes
1answer
61 views

get_theme_mod not pulling css colors into header using wp_head

I've had an issue with the theme customizer. On this page http://codex.wordpress.org/Theme_Customization_API you can go to: Part 2: Generating Live CSS And you'll see a way to fetch the settings ...
0
votes
1answer
47 views

Plugins & Setting Menu Items Removed From Admin Panel

I am unable to add any new plugins and can't see menu settings as well. I think it's been disabled. How do I bring these admin menu items back? Here's what my admin panel currently looks like:
0
votes
1answer
39 views

disable WP_error: authentication_failed

I am modifying my wp-login.php but from within functions.php (in order not to hack the core). I need to disable one WP_error with code: authentication_failed. if i hack the core and modify ...
0
votes
1answer
43 views

How to add posts with thumbnails to my dropdown menu?

I want to create the same effect in Listverse menu. I have a dropdown menu, and I want to add a post section with thumbnail, as shown in the image below. How to achieve that? Thanks!
0
votes
1answer
11 views

Rewriting to a different page based on existence of query string?

I have a home page (id = 4) and a form page (id = 5). I want to send them back to the home page if they don't have a query string. But if they do have the query string we are looking for, then I want ...
0
votes
1answer
30 views

Manually insert post into MULTISITE database: Need to specify the TABLE

I need to manually insert a post into multisite database. I'm using the variables listed here: http://codex.wordpress.org/Function_Reference/wp_insert_post ...and have been able to insert a post into ...
0
votes
1answer
33 views

Plugin with connection to database - Single function

I'm creating a personal plugin with more files and I need to connect to an external database with WPDB. At the moment I'm repeating "new wpdb(...)" in every function, in every file, of my plugin. Is ...
0
votes
1answer
212 views

Remove current class from sub menu items

I am building a wordpress website with drop down menu (sub menu). To achieve this here I am using wordpress walker class. This is the code which I am using in my functions.php class ...
0
votes
1answer
78 views

Custom Post Type + Category archive

I have created a WP stack with 3 post types: 1. Post (default) 2. Event 3. Place These 3 post types share the same taxonomy, that being the default WP category, here are some example categories: ...
0
votes
1answer
22 views

When I'm in post editor and click on 'Add media', why won't it load the media library with this code?

add_action( 'admin_init', 'my_remove_menu_pages' ); function my_remove_menu_pages() { global $user_ID; if ( current_user_can( 'contributor' ) ) { remove_menu_page('tools.php'); // Tools ...
0
votes
1answer
31 views

Link post to blog from a static page

I'm a WP rookie, and I just designed a static homepage that shows the 3 most recent posts in my database. I would like to redirect the user to another page in order to show him the entire blog post ...
0
votes
1answer
75 views

Sharing users across multiple sites, each on their own database

I have read many solutions out there for sharing users and checked out the other posts on here, but can't find specifically what I'm after, as they all talk about users on the same database. ...
0
votes
1answer
100 views

htaccess mod_rewrite not working

I'm pasting my full htaccess file, for clarity, as to be honest, I'm not entirely sure if I have to include my non-default directives inside the <IfModule mod_rewrite.c> bits or separately ...
0
votes
1answer
40 views

How to search for categories instead of products in Woocommerce?

I have a webshop with over 30.000 products. I was wondering whether it was possible to, when you search to do so that it searches for categories, rather than products as I get a ton of products when I ...
0
votes
1answer
36 views

Excerpt showing under title in admin columns

I am developing a site for a client, but i am facing a weird issue that is excerpt by default shows under title in admin columns. This is happening for all post types including custom post types. I ...
0
votes
1answer
35 views

How to hide slug numbers with htaccess

Is there a way to do an internal redirect from /product-category/brand-2 to /product-category/brand and still display brand-2 products and sub-categories?
0
votes
1answer
38 views

Get attachment/image info in JS

Is there a specific method to get attachment/image info in JS? I have an attachment id and before I use any add_action("wp_ajax_get_image_info", "get_image_info"); I would like to see if there is ...
0
votes
1answer
20 views

Function the_content

For some reason on my attachment page template (http://capa.furniture/?attachment_id=1494) I am getting the url of the reduced size image. I do not know why. I am not getting the thumbnail full size ...
0
votes
1answer
45 views

How to run filter only on custom post type edit screen

I am trying to force minimum width and height requirements on featured image upload on a particular post type only. My minimum width/height code is ok, as it works just fine on all post types. I am ...
0
votes
1answer
17 views

Split posts between databases

My client requested quite a specific solution for his WP based wordpress (single site, not multisite). Basically what he wants is, let's say after 1000 posts new database should be created (with 5 ...
0
votes
1answer
28 views

How to make post page unique and show it on home page?

I don't know if the title is correct but I'll try to explain my question below. I have created a custom post type "Projects" and the trick is that one project have to be unique and displayed on ...
0
votes
1answer
13 views

How to restrict users in edit post that can just select exists tags? not add new

How to restrict users in edit post that they are just can select exists tags in select box and can not add new tags in Tags meta box?
0
votes
1answer
52 views

Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table

I am trying to modify a plugin that searches the posts table and have it also search the meta_value in the postmeta table. original code is: if (!($index_page = $wpdb->get_row("SELECT ID AS id, ...
0
votes
1answer
28 views

Setting Default Screen Options

Is there a way to set default screen options for a page? Ideally what I want is to be able to set screen options so that say for example, my page attributes, Discussion, and custom fields are visible, ...
0
votes
1answer
42 views

main menu page redirects to user ID

I have a site that displays fitness results to clients. It works by showing them a page based on their UID displaying unique charts and graphs etc. I can redirect members to the unique pages on ...
0
votes
1answer
41 views

Adding pagination to query for custom page

I've made a custom news page using a custom page template and this is my query for latest posts: if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); ?> ...
0
votes
1answer
87 views

Create multiple sections for all categories and then queries all the posts for each of those categories

I'm trying to find to find a way to create a loop that queries all categories and then the posts under those categories. I am using a custom loop to display my posts and I'd like to have it follow ...
0
votes
1answer
12 views

current_menu_parent for custom post type and custom url

I have defined a custom URL that loads a custom template, as a customized "archive" por a custom post type. I can't use the native archive since the page has a couple requisites that the archive ...
0
votes
1answer
55 views

Alter the main search query to search posts by coauthor user name

I am using the Coauthors plugin: https://wordpress.org/plugins/co-authors-plus/ I have written some SQL in order to grab posts from authors whose display name matches the search query when searching ...
0
votes
1answer
116 views

How to Get Current Custom Post Type Associated Taxonomy Term

I have a single.php file like below <?php get_header(); ?> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); echo '<div">'; ...
0
votes
1answer
39 views

Changing custom post_type when publishing

I would like to change the post_type from "prototyp" to "gutschein" when publishing a "prototyp" (clicking publish button of a "prototyp"). Is there a way to make this automatically by a function? ...
0
votes
1answer
72 views

Wordpress Custom post type single page 404 error

I have a wordpress website where I am using custom post types. I have an error on all single custom post type pages of one of the custom post type called products registered as portfolio. If I refresh ...
0
votes
1answer
27 views

Parsing session info between WordPress and non-WordPress

I have a Web App that resides in example.com (non-WordPress, completely independent databases, etc) and I have a WordPress website, website.example.com and example.com/website. Users will never log ...
0
votes
1answer
30 views

Show parent's child and also child's, child on a page?

I'm trying to get my head around this issue I have and the only way I can think about doing it is pulling in things via a WP_Query but you can't have a query inside a query can you? What I'm trying ...
0
votes
1answer
77 views

Can't show Woocommerce product category description

I'm trying to show product category description on a Woocommerce pdf invoice. Here i'm using this code , but not showing anything. $cat_id = $category->term_id; $term = get_term( $cat_id, ...
0
votes
1answer
44 views

How to add a text widget on the posts admin page?

I need to add a text widget on the posts admin page ie, the post editor page. so that I can add some code in the text widget for some purposes. Right now I have used text widget and this can only be ...
0
votes
1answer
92 views

404 not working on main site on multisite

I currently have two sites(main site and sub site) created with multisite function. Recently, i noticed that the 404 error page seems not to work on main site. No matter what error url i type to test ...
0
votes
1answer
27 views

Manually updating plugins via FTP or SCM

WordPress allows you to update plugins from the Dashboard with one click. When doing these plugin updates via the dashboard, WordPress says it performs the following steps: De-activate the old ...
0
votes
1answer
28 views

How to have a specific image show up for everyone who comments?

How can I have an image I created be a avatar for everyone who comments on my wordpress posts? So it will have my logo or something instead of a blank square? Thanks!!
0
votes
1answer
17 views

Add a required field to Registration

In addition to the UserName and Email address, I would like to add a checkbox that must be checked for 'I agree to this site's Terms and Agreements', in order for the account to be made. Whats the ...
0
votes
1answer
49 views

Sanitization html output itself

I've just started code according to VIP WordPress Coding Standards and I stuck with sanitization. I know that all outputs need sanitization without any exception. But how can I do sanitization of a ...
0
votes
1answer
32 views

How to display term in archive page?

I want to display 'state' in my custom post type 'job' Archive page. Now my archive page only have title and excerpt. Can you tell me how to modify this 'content-job.php file? p.s. My post type is ...
0
votes
1answer
39 views

dbDelta not creating tables with composite keys

I've been trying to figure this one out for 3 days now, reading every reference on dbDelta I can find. My ultimate goal is to create a table of unique ad_id, ad_trigger pairs. This does not create a ...
0
votes
1answer
90 views

Fixing wpdb->get_results and wpdb->prepare?

So I have been using the theme Vilan from ThemeForest. Along with the theme come a couple of plugins, of which one is Revolution Slider. I'm also using Bedrock by Roots. I'm getting the following ...
0
votes
1answer
66 views

Replace image scr with it's surrounding href

I'm trying to add a filter to the content to replace the src of all images in the content with it's surrounding href link. Any ideas how to go about this? The only thread I could find that came close ...
0
votes
1answer
44 views

How to display data in archive page?

I have a custom post type 'job'. I created a archive-job.php . How can I display 'post date', 'city', 'state' in my archive-job.php page? Currently, my archive-job.php page displays a list of jobs ...
0
votes
1answer
51 views

Menu item hidden behind others

I'm having some issues with my menu being displayed properly. As you can see from the photo below, my 3rd level menu items are hidden behind the others for some reason. I've gone over my template I'm ...

15 30 50 per page