-1
votes
0answers
4 views

Categories Name in wp_Qurey

when i run this query the categories name the same , all item with categories name "News" , i can not define the issue . you can find the code in this link : ...
0
votes
1answer
737 views

Full path disclosure on rss-functions.php

I was running some security test on my WordPress apps and noticed that all of them have a full path disclosure on the following url. I am sure this has been answered before but I can't find any ...
1
vote
0answers
9 views

Using WordPress' Theme Customizer to select page templates that update layout in the preview

I wasn't sure where to post this question.. I recently discovered WordPress' "Theme Customizer" and am using it to make the pages easier to update for clients. Rather than the standard way of editing ...
0
votes
1answer
6 views

Getting results from wp_oembed_add_provider

I'm having trouble getting results from wp_oembed_add_provider(). I'm developing a site which needs to embed video content from Facebook, and I came across this handy list of Facebook URL structures. ...
2
votes
3answers
3k views

Why does One Click Update fail on localhost using FTP with 777 permissions on site files?

I can successfully upload/remove media, add/remove plugins and edit theme files within admin CP. The one thing I can not do in admin CP is a normal one click update from WordPress 3.7.1 to 3.8. Ideas? ...
0
votes
1answer
18 views

WP Meta Query - mixed AND / OR query doesn't work

I am absolutely boggled by this one. I am creating a search function for a property site - simple enough. Simple queries such as max_price, max_beds, rent_or_buy work ok. But I am trying to create a ...
0
votes
0answers
9 views

Load get_page_templates into select menu

I am using WordPress' Theme Customizer where I would like to add an option for the user to select the page template used. Here is the code to get the page templates. This is the section that needs ...
0
votes
1answer
3 views

get_page_templates only return templates with “home” in the filename

I have the following custom page template filenames: template-about-1.php template-about-2.php template-home-1.php template-home-2.php I have this function to get_page_templates: function ...
1
vote
1answer
1k views

List posts based on first letter of posts

I want add a pagination How can I do this on both loop.php and search.php. I want show alphabetic index to search only posts with starting letter = [E] for example. Right now, if I search with E it ...
0
votes
1answer
15 views

Orderby taxonomy term id using get_posts not working

I'm looping through a series of custom post types and then grouping those by a taxonomy term. That is working great, however I have not been able to order these groupings by term_id. I used a ...
1
vote
1answer
15 views

Hiding posts from non logged in users

I wish to hide certain posts for anyone that is not logged in. I tried the Restrict Content (RC) plugin but that did only hide the content of posts, i wish to omit the post completely. Using RC as a ...
0
votes
0answers
4 views

Update get_page_templates function to pass template filename into select option value

I am using the following function to pull page templates into a select menu in WordPress' Theme Customizer: function get_page_templates_select() { $teh_cats = get_page_templates(); foreach ( ...
0
votes
2answers
426 views

Bulk edit custom excerpt text in WordPress

Is there a way to bulk edit the custom excerpt text without going to each post and open it? When we have 300 posts it can be a very time consuming process.
0
votes
1answer
10 views

Role can edit just one page

I've built a site for a client, only ten pages, nothing especially big, and created a role for the group members called Blogger, as the staff need to all be able to both blog and access a couple of ...
1
vote
1answer
28 views

Retrieve POST data from AJAX call

I have the following JS script : jQuery('#form-recherche').submit(ajaxSubmit); function ajaxSubmit(){ var newFormRecherche = jQuery(this).serialize(); jQuery.ajax({ ...
0
votes
2answers
950 views

Why am I getting a “Call to member function format() on a non-object” error?

I am trying to add a hook to post saving using WP Frontend User When the form saves and the post is created within the "save_post" function I am trying to find the value of a custom field ...
0
votes
1answer
8 views

With Wordpress + Visual Composer, how to restrict a user to change some content in a page?

Sorry if it's not the right place to post that but I did not find better. I know in Wordpress, it's possible to restrict users to change pages or remove items from the menu. But is it possible to ...
0
votes
1answer
430 views

Query Custom post type with Taxonomy Custom Field

I have a Taxonomy called Cities. I have created a custom field for this taxonomy, using ACF, called Country So I can create a City and select the Country (select list with predefined options) it ...
0
votes
0answers
8 views

Storing Unique Data on the Database

I have created a custom table on my database using the code below: function dbcreator_activate() { global $wpdb; $table_name = $wpdb->prefix . "ftbstatistics"; if( ...
0
votes
0answers
8 views

Allow one use group to manage another

I have a website where members and their managers have accounts. The members can create and upload their content, but the managers have their own login and can see a list of the members they manage. ...
0
votes
0answers
16 views

Blank screen on wp-admin

I know this question has been asked tons of times but it was all outdated; I tried every single thing and it still doesn't work. Here is what I tried so far: Renaming the folder Renaming plugins ...
0
votes
2answers
475 views

New User Registration email

I am receiving an email notification whenever a new user is added to my site. I need to change the default 'send-to' address. It is using a personal email, rather than my 'webmaster' email. Where is ...
0
votes
1answer
21 views

Add custom shortcodes to the Welcome Mail

I need to add a custom shortcode to the welcome email of my website. I'm not expert; what I need is in plugabble.php file? I tried a lot of plugins for edit email template but nothing seems work. ...
-2
votes
0answers
8 views

Woocommerce: Ship only to specific states

I'm trying to limit my delivery to specific states in the Woocommerce checkout, but I want to allow billing to all states. I've searched many times to solve this problem, but failed. I found this ...
2
votes
1answer
898 views

Admin Area Custom Type Search By Meta Fields Without Title & Content

I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code: ...
0
votes
1answer
41 views

Programmatically Create Menu Link For WooCommerce Memberships

I'm using WooCommerce + Memberships and need to add a direct link to the Memberships "Member Area" in my primary nav. Due to the fact that the Memberships "Member Area" section contains the id of the ...
1
vote
0answers
6 views

Add custom capabilities to existing custom post type

The only way I can find to associate post types with custom capabilities is during the register_post_type function. I'm looking to add a capability for a certain role (my_role) for a post type that ...
0
votes
2answers
50 views

Why my wp_posts data is so huge?

My WordPress has only 23 posts but the wp_posts data is over 70MiB. Is it the average size? The Posts I have were created with WPBakery Visual Composer and has 10 revisions. However, I deleted all the ...
0
votes
4answers
276 views

Using WP_Query how can I show events (a custom post type) that are in the future?

I am using a plugin called events manager. There is a custom post type called events, & each event has a date in a custom field. There is also a custom taxonomy called event categories. On my ...
0
votes
1answer
13 views

Importing featured image to posts, duplicates the image

I'm using wp cli to import the same featured image for around 2,000 posts. I did a couple tests to see if the image would be duplicated or if WordPress would notice that the image already exists in ...
0
votes
1answer
434 views

TCPDF get_post_meta outside the loop

I want to be able to export a html page to PDF. I downloaded TCPDF (mainly because it allows me save High resolution images and shrinks the filesize.) The TCPDF folder is in my theme folder. If a ...
2
votes
2answers
1k views

How to remove “Super Admin” from All Users for those that are not a “Super Admin”?

I would like to remove the filter at the top that says "Super Admin" for users that are not a "Super Admin". How do I go about doing this? This screenshot shows what I am talking about:
0
votes
2answers
13 views

Detecting current page from class method

I've tried to look for a specific answer/tutorial on this subject but I'm coming up short and wanted to see what the SE community could suggest. At this point, any guidance whatsoever would be most ...
-1
votes
0answers
13 views

how to solve wordpress theme installation problem?

I am developing a theme but when I install this theme in my local server it say this message. what's the problem actually?
1
vote
2answers
1k views

Modify featured image path to amazon s3

I have uploaded my images to amazon s3. There are some Featured images. Inorder to modify their path, I run the update scripts to change the path of wp_posts.guid. But the image still points to the ...
-1
votes
0answers
22 views

Is my wordpress hacked? [on hold]

I have this weird code in my wp-load.php getting added every time I delete it. I want to know out of curiosity what the code meant for. Also I want to know how I can stop it from coming back. ...
-1
votes
0answers
13 views

Help me identify best theme / foundation to start developing a portfolio website [on hold]

I'm trying to create a portfolio website where I can showcase some of my work as well as write about some of my thoughts. If I could make one existing website my portfolio it would be the solveforx ...
0
votes
1answer
16 views

Redirect all pages except one to homepage via .htaccess

I just trasformed an old website to a one-page Wordpress. The old website had several URLS, now there's ony 1: the homepage. Plus another page with privacy policy. Hence I would like to redirect all ...
1
vote
1answer
23 views

How to target first img in every post with CSS

I am trying to target first image in every post. The example post where I am trying to perform this is here. So I tried to use first-of-type like this .single-post .entry-content ...
13
votes
2answers
7k views

Creating an Image-Centric Custom Post Type?

Does anyone have any tips for creating an image-centric custom post type? To elaborate, my blog has rotating header images, shown below: The two images in the top left are randomized, and exist as ...
0
votes
2answers
20 views

How can I alternate styling of images in a post?

I'm working on a theme for a travel blog and the author likes to insert small images in the text of their posts (an example is here). I want the images to alternatingly float left or right (so the ...
-1
votes
0answers
5 views

WooCommerce Bookings : Display Element if a Saturday Is Selected From Date Picker [on hold]

I'm using the WooCommerce Bookings plugin on my WordPress site. I'd like to be able to show a paragraph of text underneath the datepicker calendar on the product page if the user selects any Saturday ...
0
votes
0answers
20 views

Ajax and form action

I'm using Zajax plugin for page-loading. It's impeding the action of a PayPal add-to-cart form and preventing the desired action and delivering a 'failed to load' error. Is there any code I can add ...
0
votes
0answers
5 views

Woo-commerce: Hiding archived products from the front end when logged as admin

With Woo-commerce archived products appear on the front end of the site when a user is logged in to the WP-Admin area. Is anyone aware of way to prevent archived products from being displayed like ...
0
votes
3answers
18 views

AJAX call returns 0

In spite of many similar posts, all the proposed solutions didn't work for me, so here we are. I have the following script : jQuery('#term').keyup(ajaxChange); function ajaxChange(){ ...
2
votes
1answer
956 views

Can I configure WordPress to use postfix without a plugin?

I am developing a WordPress site on a vagrant box and have installed postfix in order to test email notifications. At this guest OS (Ubuntu) level, I am able to end a test email: echo "Test mail ...
0
votes
2answers
17 views

Which function required?

Which WordPress function allows you to include the footer.php file into index.php file?
1
vote
0answers
17 views

Custom Post Type relationship with hierarchical parent and child permalinks

Trying to get my permalink and url structures to behave nicely. I have a Custom Post Type called Diseases. This post type is hierarchical with parent and child relationships. I have another CPT ...
-1
votes
1answer
23 views

WooCommerce Empty Cart if User Go to Page or Site Other than Current Checkout Page

I am having a breakdown as I am trying to create a method where when user go to page/site other than the current Checkout page, user's cart will automatically emptied. I wonder if this is possible ...
1
vote
1answer
14 views

Customize Embedded Tweets (or, How To Hide Photos in Embedded Tweets)

I'm relying on the WP functionality to embed a tweet. When I add a tweet URL, like so: https://twitter.com/SamFlowers/status/724417082247528448 to the editor, it expands and shows the following: ...

15 30 50 per page