Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
0answers
12 views

When I try to change the category of the post that should loop it doesn't happen wp_customize

I hava a proble with wp_customize. When I try to change the category of the post that should loop it doesn't happen. <?php // posts loops begins here $post_id1 = ...
0
votes
0answers
8 views

“Request a Sample” Button - WooCommerce

I'm trying to make a button on each of my products that will allow users to order samples of products. The first 2 are free, then each subsequent sample after that will cost 75p each. I tried this ...
-1
votes
0answers
10 views

WC_product class in custom plugin not found [on hold]

I am trying to make use of the WC_porduct class in my custom plugin but it throws the error; 'Fatal error: Class 'WC_Product' not found in:' I've added global $woocommerce, $wordpress; to the top of ...
0
votes
0answers
10 views

Gravity forms plugins image upload code [on hold]

I want to change dpi of an uploaded image before uploading that image and before saving into database.
0
votes
0answers
4 views

Display custom text in Product page depending on Product Category (WooCommerce) [on hold]

I need to display a custom notice (in text format) in my Product Page for a number of products depending on the first-level Product Category they belong to. Categories depth may vary but the custom ...
0
votes
0answers
16 views

How to Structure a Wordpress Installation for a Theme Developer Site?

I want to start developing premium themes for Wordpress. I have seen just about every theme developer site allow you to view demos of their themes. So my question is... What is the best way to set ...
-2
votes
1answer
17 views

Add form to woocomerce checkout [closed]

I want to add custom country city drop down in woocommerce checkout field which filter city with respect to country. like billing and shipping form
0
votes
0answers
7 views

How to work around the bug which prevents custom menus from being deleted?

A bug makes it impossible to delete a custom menu in the expected way: select menu, click Delete Menu. This has never worked for me on any WP site in any version of WP; it produces an Error 403 and ...
0
votes
0answers
10 views

How to get all the markers on the single map for every post for advance custom field [closed]

I have multiple posts, every post have individual address and it is shown in the MAP. now i want to show each address on one MAP at My home page. So with in the one MAP all the markers will be ...
0
votes
1answer
23 views

Redirect Every Instance of The Author Template Pages to Custom Author Pages

What I'm looking to do is actually a simple redirect, but for the EVERY page contained in the /author/ slug. The working slug I want to redirect to is /team/. For example, if someone were to type ...
0
votes
0answers
27 views

Gravity Forms and Custom Post Type Pandamonium [closed]

Here's the deal: please don't delete this post for anything until I get an answer because I have been everywhere online, and I mean everywhere, with no luck in attaining an answer to this seemingly ...
0
votes
1answer
17 views

How to format text of site subtitle

How do I italicise a word in the subtitle of a wordpress blog? Markdown isn't supported in the tagline field in dashboard's general settings.
0
votes
0answers
13 views

Create custom field & behavior for custom post type

I want a custom field that stores a file. There is also a "generate" button next to the field that generates the file which then stays with the post. Is something like this possible?
0
votes
0answers
47 views

How To Achieve This URL Structure? [duplicate]

I have a custom post type of Dining, with a slug of "dining". That is the only thing that must stay the way it is. My desired URL structure is like so: site.com/dining site.com/dining/dining-post OR ...
0
votes
0answers
16 views

Change Website Contact Address depending on user location [migrated]

I have a company that is catering to 3 different markets: The US, Bermuda, and the UK. Is it possible to update the business address to reflect the location the user is from? For instance if they are ...
-1
votes
0answers
16 views

Change my code to solve my portfolio problem

In my wordpress theme currently portfolio block looks like single block like in theme http://verindus.different-themes.com/#., but i want to repeat that block for each category , remove the filters ...
0
votes
1answer
53 views

Let author add field to metabox by pressing a button

I have added a custom metabox for authors where they can fill in a url to a source, which I can then use in my template. In my functions.php <?php /* Add metaboxes (see below) */ function ...
0
votes
0answers
13 views

looping thru custom table, and sorting by usr_id and date

so for the last months i've been learning my self basic php, and javascript. and as so many before me i've hit a brick wall at foreach so i hope there is a nice guy in here who willing to set a ...
0
votes
1answer
34 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: ...
0
votes
0answers
23 views

Search multiple keywords in separate fields?

Rather than writing all terms into 1 field and separating with a comma, is there a way to search multiple keywords all entered into their own separate fields? I have created the visual effect here: ...
0
votes
1answer
13 views

Show custom field value as a link

I’m trying to show one of my custom fields as a link that downloads a photo. I’ve entered the URL in the field value but struggling to come up with the correct html to get it to display as a ...
0
votes
0answers
17 views

Sidebars for custom post type

I have created a sidebar and named it as ‘Clients Sidebar’, i also have custom post type ‘Clients’, now i want to assign ‘Clients Sidebar’ to all Clients without using any plugin,my theme has an ...
0
votes
1answer
29 views

Display only one post each WEEK

I have custom post type named 'NEWS' where i already published 52 posts at a time. Now, in front i would like to display them ONE NEWS for ONE WEEK. So 52 NEWS will cover one year for me. My ...
0
votes
0answers
28 views

Dynamically changing menu item link

Hoping someone can help me out - this has been driving me nuts for the past two hours. I'm trying to create a menu item - the menu URL should basically be: http://thesite.com/author/%username% ...
0
votes
0answers
13 views

Can't login to adminpage on iphone 6.1.6

I have created a WordPress website with a custom theme. All works well untill I want to login to the website from a iPhone 3 with ios 6.1.6 If I go to www.website.com/wp-login.php the page goes to ...
0
votes
2answers
25 views

Display popular posts by how many hits it got within 30 days of publishing

I am an editor of a blog with nearly 200 published articles that have been published within the last two years. All the popular posts plugins I've found show the most popular posts of all time. ...
0
votes
1answer
21 views

How to make the Pages in WordPress Customized?

I have a Theme I like. The front page is terrific. However, the pages have horrible formatting. How do I bypass this & get my own page formatting? (I know I have done this before...) If possible, ...
0
votes
1answer
23 views

Custom display for homepage, tag and author pages

I need to have pages where the first post on the page has a special format. I've figured out how to modify loop-home.php to get the result I want outputted on the homepage. I want to have the same ...
0
votes
0answers
37 views

Custom “wp_login.php?action=lostpassword” and reset password

I've got a custom registration form which works. Then, on this form, I have the "forget password" link. This one is not working very well. The "forget password" form is OK with its design; enter a ...
1
vote
2answers
39 views

Best practice for adding posts in bulk

I have a set of custom post types and taxonomies I've added using the Custom Post Type UI plugin, and need to enter several hundred entries ( >500 ) How can I import this data in bulk? E.g. as a csv? ...
0
votes
0answers
15 views

Override “Automatically close comments on articles older than” per post?

I need to set a custom closing date for the comment field, per post. I havent started researching on how I should do this, so a indication on how to do this would be just as good as a plugin that do ...
1
vote
1answer
33 views

Pages are not saving due to custom post type

I have a custom post type "soto_user". In which I have custom meta field named "Publish" from which user can select 'YES' or 'No'. If user selects "Yes" and click Publish button then post should be ...
0
votes
0answers
51 views

Include data from custom table in WP_Query

I'm building an Estate Agent website. They have a system where they add their available properties and sends them all to the main property portals. As part of this, the system also sends all the ...
-2
votes
1answer
26 views

Changing displayed photo when shared via facebook

I hope you can help. When I am sharing our site www.rotaract.hu in facebook for example in a message, it is always showing the grey photo. Is there any possibility to change it the way it shows the ...
0
votes
2answers
72 views

Inserting custom PHP script on homepage

I have a simple PHP script that I want to load whenever someone lands on a homepage. It is fetching data from another service and then I have to display it in a container on the homepage. I was ...
0
votes
1answer
29 views

Hide text if not homepage

I want to add text but only appear on the homepage only. I have used this if script: <?php if( is_home() ) : ?> <p>Some text</p> <?php endif;?> but the problem with this is ...
0
votes
0answers
33 views

Use This Code in Frontend

I am using this code, adapted to my needs: <?php /** * Plugin Name: YLDist Profile Checkboxes * Plugin URI: * Description: Profiles * Author: JPowersFreelancing * Author URI: * Version: 1.0 ...
0
votes
1answer
39 views

Toggle custom fields?

I got a custom field and I want to toggle a specific custom field. So for example I have 2 custom fields named: Subject and Score. When viewing a single post the custom field 'Score' data is hidden ...
1
vote
0answers
22 views

Diffrent User registration form for doctor and patient

I am building a health care website. where both patient and doctors are allowed to register. Here I want to register doctors by different registration form and should be available with different ...
0
votes
1answer
33 views

Getting page/category content to show up in my custom page template

I am trying to get my category page content to show up in my custom page template, it returns everything I call, except for the actual page content when I am testing it. Hope this is somewhat clear :\ ...
0
votes
1answer
34 views

Advanced Custom Fields - Add Field to Specific Page [closed]

I have created a custom post type for testimonials. I have each testimonial as a text field titled 'testimonial' using the Advanced Custom Fields. I have a list of pages for services and want to pull ...
0
votes
1answer
22 views

Dynamic Control in customiser

I need to build a select on my theme customise screen from this foreach: foreach($wp_registered_sidebars as $sidebar_id => $sidebar) { if($sidebar_id == $val) $sidebar_id.$sidebar['name'] ...
0
votes
0answers
29 views

Custom post type relation

I have created two custom post types using a plugin and using a form i'm able to submit posts using a frontend form creator. It's like one post type is for movies and another is reviews. So how do i ...
0
votes
0answers
19 views

Custom post type - cannot link custom template to it in my plugin

I have created a custom post type called "syndication" in my plug-in and that all works as it should. However, I want to provide a custom template for the "add" option so I created a file in my plugin ...
0
votes
0answers
24 views

Creating a text file in plugin directory not working

I am creating a plugin that in admin end will create a text.file but when I tried it, no text file were created. this is my code.. if($_POST['pluginvalue_hidden'] == 'Y') { ...
0
votes
1answer
22 views

Remove Duplicator plugin from admin menu if not an administrator

I'm having a bit of trouble removing the menu item added by the Duplicator plugin (https://wordpress.org/plugins/duplicator/) from the admin menu if the user is not an administrator. I am able to ...
0
votes
0answers
11 views

WodPress parent menu item not displaying

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> My menu is Contact About [ parent item] - What we do [child item] - Who we are But About doesn't show. How do I get ...
0
votes
0answers
25 views

Show author box of custom post type

I have installed a plugin to create ads listing but in the single ads page there is not the metabox author. What I want is to show below any single ad listing a box with listing's author info. I ...
1
vote
1answer
38 views

Create default_content layout template based on post id

Background What I am attempting to do is create a custom post layout template for a specific post (or even page) that the WordPress user can simply insert content using the WYSIWYG editor without ...
0
votes
0answers
16 views

$wpdb->insert running multiple times?

Im trying to run a $wpdb->insert ONCE on every page load (for testing purposes). The insert will insert a meta field for a post type. I have tried hooking the insert function into "init", add it to ...