0
votes
1answer
8 views

Multiple approval from editors before publishing?

I would like to have more than 1 editor approve a post before it can be published. Is their anything that does this out of the box or will I need to roll my own?
0
votes
1answer
16 views

Error when renaming option

UPDATE: This error came from WP_DEBUG...of course, embedded_url didn't exist yet. However, when I set the value of $options[embedded_url] using the form, the $options array magically adds both the new ...
0
votes
1answer
20 views

How to Include Custom Post Content From Plugin

I am currently working on a plugin that creates a custom post type. The post type has various meta fields which are used to display the content. I am struggling trying to determine how to display ...
0
votes
1answer
11 views

Swatch Internet Time for article timestamps

The date and time when the article was published is shown below the article title. How do I show Swatch Internet Time there instead of local time?
0
votes
0answers
9 views

Custom generated WordPress menu using get_pages renders the proper HTML but doesn't display all elements

I have created a menu with the hopes of listing all of the child and grandchild pages of a page (see link below) it works great except that it is cutting off the menu at about 15 children pages, most ...
0
votes
0answers
12 views

image on rss feed on post

i am so new to wordpress, i have a theme, i want my website to display post of bloggers fashion posts from a virtual world second life...i started using blogger, they have a simple widget "bloglist" ...
3
votes
3answers
377 views

Is it a good idea to edit an already existing plugin to add more functionality?

I need to add a relatively small bit of functionality to a Wordpress plugin and I have the option to either edit the plugin directly, or scrap the plugin completely and repurpose PHP code from another ...
0
votes
1answer
15 views

Populating content dynamically via AJAX and Advanced Custom Fields [on hold]

I am using a repeater field from Advanced Custom Fields to create multiple photo galleries. There are 4 pages and each page has multiple image galleries. Because of this, I want to reduce load by ...
-2
votes
1answer
19 views

Create a page in a plugin , like woocommerce

I want create a plugin with custom posts. Which post will be shown in the single page from the plugin, just like woocommerce single products are shown. How can I do it. I saw it in many plugins as ...
0
votes
0answers
13 views

Google maps live search and data storage in wp

I am developing a website - sellers database. Every seller posts locations - shops he has visited in the past so the chance of another seller visiting the same shop is being eliminated. I have built a ...
0
votes
0answers
11 views

Autogenerated Title for Custom post type loses title when trashed/deleted

I am generating title for a custom post type using the following code. It takes the $fname, $mname, and $lname values and generates a title based on the post. This works fine for custom post creation ...
0
votes
0answers
14 views

AJAX doesn't pass variables to the php function in the plugin

I'm creating a plugin that at a certain point has to use AJAX to pass information to php depending on the events fired by front end user on the different page. The event itself is when the user ...
0
votes
1answer
13 views

add class to internal links in content

i want to add a class to all links inside of the_content, that point to other interal content, f.ex. other posts and pages. i want to do this automatically. dunno if the best practise would be, to ...
0
votes
0answers
11 views

Pagination for categories with a different amount of posts on first page not appearing on 2nd page

I wish to show a different number of posts (4) on the first page of a category page, while showing a different number of posts on the following pages (16 posts on each). I have an extra condition for ...
-1
votes
0answers
10 views

No-index categories on woocommerce [on hold]

This is my first post here and i dont know if there is topic that would help me (was searching for solution but dont find things that would interes me). When I go to google and write site:mysite.com ...
0
votes
1answer
8 views

using posts_where for meta data on pre_get_posts

Let's say you have some code which filters posts by using pre_get_posts e.g. add_action( 'pre_get_posts', 'be_exclude_category_from_blog' ); function be_exclude_category_from_blog( $query ) { ...
0
votes
1answer
15 views

Incorrect search results in search.php – issue triggered by using `define('BodyID', 'search'); the_post();` in search.php

I have a problem where the page title is not picked up in search results. I've narrowed the problem down to the following line of search.php in my custom theme. define('BodyID', 'search'); ...
-2
votes
0answers
17 views

Post with voting process

I have not worked with wordpress before. Here is my goal. Create a post/page with a voting process which is available to vote once per IP address. You can vote only for one option. To vote you have to ...
0
votes
2answers
20 views

Frontend Form for Custom Post Type

I want to add frontend post to custom post types. Till now I have figured out how to do it but only to the regular post type(not custom post). I am using this code. (Couldn't paste it here hence ...
-2
votes
0answers
16 views

jQuery character count in Contact Form 7 textarea [on hold]

I use Contact Form 7 and I need a character/word count (twitter-like) for text area elements. I can't use the CF7 Textarea Wordcount plugin as it's not updated and I need to use the latest version of ...
0
votes
0answers
16 views

wp-config.php appears to be hacked [on hold]

It appears that a site I am working on has been hacked in some way. The wp-config.php file has some strange php functions at the top: http://pastebin.com/dcKPtAZu All wp-config.php files on the ...
-1
votes
0answers
12 views

Change Woocommerce default country according to ip [on hold]

What I am trying to do is detect the visitor's country and then set the default country in Woocommerce to that. I have two pieces of code, independently they work. The first is to detect the country ...
1
vote
1answer
18 views

Exclude all subcategories in the_category (post)

I'm looking for a way to hide all the subcategories based in my post: It always displays in my posts like : Categorie, sub categories. So I'd like to exclude all of the sub_categories. I've been ...
0
votes
0answers
17 views

How to add jquery to my custom post type wp plugin

I want to include a jquery to my wordpress custom post type plugin which i have created. i have two doubt,,, the jquery script will work only on widget options (i.e) Sidebar. So when i use the ...
0
votes
1answer
8 views

add custom classes to anchore in wp_nav_menu

i wana add custom class to anchores in wp_nav_menu outputs. default for example is : <li id="menu-item" class="menu-item menu-item-type-custom"> <a ...
-1
votes
0answers
11 views

How do I get_comment_meta() of rating from Woocommerce Plugin? [on hold]

I have a product vendor woocommerce setup on a wordpress site. People can sign up and add their own products, which are just custom post types, etc and other people who buy these products can review ...
0
votes
0answers
7 views

set custom field value when reaching expiration date

I had the idea to make sticky posts expire after a certain period of time. FYI, I am using a custom post type along with custom field suite and created sticky posts by creating a boolean custom ...
0
votes
0answers
10 views

Return only content in excerpt field in loop

I am sure this has been asked before, but I can't seem to find the answer, although it seems simple enough. I have built a custom theme based on another person's design. He uses both the excerpt and ...
0
votes
1answer
15 views

Include inside sidebar

Is it possible to include a file inside or inbetween items in a sidebar? Here are the two functions being called: <?php get_sidebar(); ?> <?php get_template_part('testimonial-box'); ?> ...
0
votes
1answer
26 views

How do display gallery embedded to the custom post type

I have a custom post 'event'. For each post there is a gallery attached. On a main galley page i am displaying featured images from each post . Now i want that when person clicks on this featured ...
0
votes
0answers
12 views

“load-scripts.php” hangs and times out when plupload is requested

I have a perplexing problem with Wordpress. When pages under /admin/ loads "load-scripts.php" with "plupload" as one of the arguments, it hangs for ever. The "Add New Post" page is one such page. For ...
0
votes
1answer
16 views

Include add_post_meta in a plugin

I am trying to call add_post_meta() from a plugin I have created. The plugin acts as a payment gateway for WooCommerce. This all works fine however I need to fire off the add_post_meta() at the end ...
0
votes
1answer
22 views

$args Orderby The number

I have this code $cat_args=array( 'include' => '42,210,21', 'orderby' => '42,210,21', 'order' => 'asc' ); $categories=get_categories($cat_args); foreach($categories as $category) { ...
0
votes
0answers
7 views

wp_editor content not being saved when used in a theme customizer option

I am replacing one of the default Customize options for the Formation theme (https://wordpress.org/themes/formation) in order to add the WYSIWYG content editor to it. I've succeeded in removing the ...
0
votes
0answers
6 views

Developing paid membership with wordpress [on hold]

I'm developing a wordpress site which will use multiple membership levels including paid memberships. I need to figure out how to do following: - Assign Membership level (I suppose this could be a ...
0
votes
0answers
10 views

Display only certain content to users in my settings

I'm trying to create a simple client portal without much additional functionality, but I need to set up wordpress according to the following information: Split users into roles / categories - ...
0
votes
0answers
13 views

Register / Enqueue Scripts [migrated]

I am trying to be neat and put all JS into .js files and register and enqueue them. So far I have 'great' success doing so. I have in my functions.php of my theme: wp_register_script( 'myscript', ...
1
vote
0answers
21 views

How to set a custom path, for ajax image upload folder in admin?

I am coding my first Wordpress plugin that handles some data for a custom (shop-like) post type. It also has an image uploader within a metabox, where you simply drag in your images and it ...
0
votes
0answers
3 views

Processing form post data using database queries to construct custom query string

I have a form on my wordpress site. On form submission I want to: 1) Capture the form data 2) Run database queries using these data 3) Process the results and use these to construct a query string 4) ...
1
vote
1answer
76 views

Use is_category(), is_tag(), … in functions.php

I want to check in functions.php if actual page is a category page, tag page, ... but the functions to check it (is_category(), is_tag(), ...) doesn't seem to work, as this condition: ...
0
votes
1answer
19 views

Update user meta array using foreach

I have two arrays consisting of keys and values: Array consisting meta keys: $user_meta_fields = array ( 'first_name', 'last_name', 'job_title', 'college', ...
-1
votes
0answers
13 views

Woocommers my account and received order mail attributes order problem [on hold]

I'm using Woocommers plugin. And I wand more fields so using Gravity form. Now single product, cart,checkout Page product attributes order showing fine(first default woocommerse attributes then show ...
0
votes
0answers
5 views

Renaming CPT slug when the user access a page from one specific taxonomy

How do I rename a registered CPT slug when the user access a page from one specific taxonomy? I have a custom post type called /package/ and it taxonomies /america/ /europe/ /asia/ /hotel/ An ...
0
votes
1answer
15 views

.htaccess regex for redirect subdomain to root domain & redirect old permalinks

ok, i have at site a blog.mysite.com, and recently migrated all content to a new wp install at mysite.com. i want to redirect all of the posts from blog.mysite.com to mysite.com and also account for ...
-1
votes
0answers
15 views

Woocommerce move related products within single product page [on hold]

I'm wondering how I can move the related products div to a different area within the page, to wherever I designate; essentially I am trying to move it outside the main content div. I don't actually ...
0
votes
1answer
31 views

$wpdb select date range of posts

0 down vote favorite Using this SQL query to sort users by how many votes(meta key) their posts have received. <?php global $wpdb; $results = ...
0
votes
0answers
6 views

How to filter user list by role on page template

The template below displays a directory of restrict content pro users. It works just as it should. I'd like to now filter these results based on custom role (let's say "member"). I thought I could add ...
0
votes
1answer
20 views

Can't output the number 0 in widget

I have an input box where a user can input a number and then that number will be outputted into an html page. It all works fine except when you enter in the number 0 it doesn't output anything but it ...
0
votes
1answer
8 views

Why does Wordpress Heartbeat login not refresh the nonces?

Here's an interesting experiment: Go to wordpress plugins listing page, notice the activate, deactivate links all have a nonce part in the request. In a second tab, log out of the site, and go back ...
-1
votes
0answers
9 views

Tooltips plugin needed for displaying Heartstone's card [on hold]

I want to build a Heartstone website and one must-have feature is to display a tooltips of a certain card like in example below. ...

15 30 50 per page