Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (17)

0
votes
3answers
29 views

Custom Content Page

We've made a whole lot of templates for different types of blog posts. However, we also want to do fully custom 'power pages' that do not follow the WordPress theme we are using. These pages would be ...
0
votes
0answers
22 views

How to avoid duplicate post entry admin page

I am building a cinema website with different custom post types. How do I avoid duplicate post entries? For example, I have a post type: Trailer First I add a trailer Terminator. After if I add ...
0
votes
0answers
34 views

How to add elements to admin-pages?

i think i just need a push in the right direction. I wrote a plugin for wp/woocommerce which works ok. Now i want my plugin to add a button to the normal "edit-product"-page ( to call one of the ...
0
votes
0answers
50 views

Custom Post Type and Functions

There is a very poor coding practice among freelancers that they create individual pages for every custom post types, but I think there is a better way to do this by Creating functions in functions....
0
votes
0answers
29 views

change url for static files in /wp-admin with a cdn url

I recently purchased a CDN and used a plugin to change the site url for all static files in the "/wp-content" and "/wp-include" folder to the cdn url. Is there a way to change the site url for ...
0
votes
0answers
7 views

jigoshop additional input fields in add to cart form as notice

I asked this on stackoverflow, but nobody noticed it so I'm asking in the more specific place. I have created a customization shortcode, where the client can add personalizations like name to the ...
-1
votes
2answers
37 views

Integrate Woocommerce to a custom theme

I have created a custom theme. Now I want to add WooCommerce to that theme but it doesn't work like the way it should. After install of the WooCommerce plugin I followed all provided steps.All pages ...
0
votes
0answers
61 views

Customizer Api: Load settings and controls from dynamically generated array

I have a front_page setting like so: $wp_customize->add_section( 'front_page', array( 'title' => __( 'Front Page' ), 'priority' => 120, ) ); I am trying to allow the user to do ...
0
votes
0answers
28 views

Override a __construct function in child theme

I'm trying to override a loop function in a child theme. I've tried a lot of things I found on google, but something fails, sometimes nothing change, sometimes I get a 500 error. This is the original ...
0
votes
0answers
42 views

SQL to update custom post field

I tried to update a custom field but I can't to this... I have a custom post that that I used for a fill months. Now I create a new date custom field called "data-edital". On the new posts, I put the ...
0
votes
0answers
22 views

Ajax filter already filtered custom post list

Clearly relatively new to WP so this might be a dumb question but here it goes. I was able to fetch a custom post list of filtered posts in a specific price range (max.value of $100). Now I want to ...
0
votes
0answers
17 views

Having a forum in a subfolder

I have a standard wp site in www.example.com Also have a smf forum in forum.example.com What do I need to do to put the forum in www.example.com/forum ? I guess this involves two parts: redirecting ...
0
votes
3answers
85 views

call get_header() function from different theme

When i create a new page, i want to choose different theme. I know about Multiple Themes plugin but i'm thinking something else. Install three different themes, activate only one and then creating a ...
1
vote
2answers
90 views

wp_enqueue_scripts not called on search page?

I've written a custom theme. It's pretty complex so I won't post a huge code block here for everyone's sanity. In my functions.php file I have the following hook being called: function ...
1
vote
1answer
57 views

Modify custom field input data before creating a new post

I'm try to check input data before it is added to DB. For example: I have a custom post meta named book_isbn in post page. I want to make sure that this variable $_POST['book_isbn'] is valid before ...
-3
votes
2answers
190 views

How to hide WordPress files / structure? [closed]

Which is the best approach to hide WordPress, preferably everything from folders and files, to admin login ? I'm pretty new to that stuff, so I'll prefer a plugin ratter a custom code, unless it's ...
1
vote
1answer
530 views

Widgets not working in Customizr but working in Appearance

I'm having some trouble with my widgets. I've registered widget areas correctly; as the widgets are showing up in the "Appearance" menu. However widgets aren't showing up in the Customizr section of ...
1
vote
1answer
71 views

creating a custom shop page display on archive woocommerce

Hello guys how are you? i am not that good at developing websites and i need to have more experience. can you guys help me? i had an idea on the screenshot i have on the link below. as you can see i ...
1
vote
0answers
43 views

Child Theme with multiple css files

I know this is a frequently asked question but I don't resolve it. I have make a child theme of a theme with multiple css file and I'm trying to copy them but I probably don't enqueues css files ...
-2
votes
2answers
123 views

How to get value from wp_usermeta table in database?

I ad a custom field to registration form: function wooc_extra_register_fields() { <p class="form-row form-row-first"> <label for="billing_cpf"><?php _e( 'CPF', 'woocommerce' ); ?> &...
1
vote
1answer
42 views

How to check post type (to include custom css)

I need to check the post type. If I put this in my functions file: echo "the post type is" . get_post_type(); the message just becomes: "the post type is". Is the post type checked to early? Do ...
1
vote
0answers
19 views

A form that can save/edit after first input

I need a form on my WordPress website that users can input information into through dropdown fields.But i just dont want the information to go away after sending.I need them to still be able to come ...
2
votes
1answer
96 views

Theme Customizer not loading

I have created a new theme and i use it in some of my sites (multisite) but at one site the customizer preview does not load (spinner never stops). Loading the customizer preview of other themes work ...
1
vote
0answers
19 views

Static admin page for all multisite users

I want to have a stats page that all my multisite users can see, it'll give info on the network like number of users, number of posts, number of blogs, some graphs, etc. In the admin bar, i've ...
-2
votes
1answer
19 views

How to apply styles to the custom page template

I have made a simple page template according to what is said in the how to here :Page Templates When I create a page and in its 'Page attributes' make the template equal to the one I've created, ...
1
vote
1answer
64 views

Creating loop within functions.php

I'm using Woocommerce on my website, on the checkout page I've got a custom select checkout field with radio buttons. I'm using this working snippet within my functions.php: /** * Add the field to ...
1
vote
0answers
28 views

Using custom image resizing script in a page

I am using the aqua-resizer to create custom image sizes and cropping. However, I am also using a theme with a built-in page editor and module-based layout. I am able to get the aqua-resizer script ...
1
vote
1answer
32 views

custom post type - page template

I have created my custom post type plugin accurately & it is working perfectly on the admin panel. I have set a filter to use custom template for this plugin add_filter( 'template_include', '...
1
vote
0answers
11 views

Unable to edit the “customize” section and the “widget” section is populating unknown code

My WordPress site is experiencing some major issues. I am getting a 500 server error when attempting to change the "customize" side bar, and the "widget" section is acting really weird (populating ...
0
votes
1answer
38 views

Display one post randomly from category on home page

I have a custom post type called "Milo-Books" and a category named "Featured" with ID of "100". I want to run a query which pulls out on post from this category on the homepage, but randomly and I ...
0
votes
1answer
41 views

Use another theme template in my theme

I want to use a different theme's portfolio page in my theme. I just want the content (portfolio layout of the other theme) but my own (active theme) header, footer, sidebar, and everything else. Is ...
1
vote
2answers
43 views

Custom Role with Own Page Edit Capability

I need to create a custom role that is only able to edit and publish his own page (page created by admin and afterwards assigned to the user with the custom role). I have successfully created the new ...
1
vote
0answers
12 views

Changing a slider to a grid [closed]

I got sucked into helping a friend with her blog and got a bit over my head. I need to change the slider on the homepage of this site to be a grid like this site. What would the easiest way to do this ...
1
vote
0answers
11 views

Custom Widget form function common elements

I am writing a set of custom widgets, all of which share a common 18 lines of code in the form() function, which looks like this: <div class="common-section"> <input type="hidden" class="...
1
vote
1answer
63 views

JS Support Ticket - Auto create WP account

Maybe you guys know if it's possible to create an account when a new user creates a ticket. At this point there are 2 options. Let user create a ticket based on e-mail address Let user create an ...
0
votes
1answer
72 views

How to echo custom styles in css format?

I'm usually do dynamic-style.php file for making dynamic css codes from theme options, shortcode, customizer and all others. But, you may already know it'll slow down our site speed. I would highly ...
1
vote
0answers
37 views

Adding the_content() in custom template email

Let my explain the scenario first: I have a very custom page template. That is use in combination with a CPT and a few Custom fields. The CPT is called "werklijsten" (it's in dutch so bare with me) ...
2
votes
1answer
33 views

Add custom taxonomy under the category title

I've added a custom taxonomy to my product category page in the admin. I can call the custom field using the following: $queried_object = get_queried_object(); $t_id = $queried_object->term_id; $...
0
votes
1answer
168 views

Reinstall WordPress Without Losing Data

So I recently had issues with my WordPress database. goDaddy created an updated MySQL and then files got thrown all over, things missing, etc. It got to the point where they pretty much told me ...
0
votes
2answers
39 views

Retrieving featured image on static blog posts page

So I've set up my site to use static pages for the front page and the posts page. Now I'm creating my posts page template. I wanted to grab some content from the actual page I made for the posts page (...
1
vote
0answers
25 views

Output custom field value to post string

I am trying to get a custom field called "u-courseid" its a field that was created by a theme plugin. My goal is to output the value of this field after the post name. So the output would be " Post ...
1
vote
0answers
22 views

Sub menu indicator that links to sub menu

I am trying to create a custom mobile menu for my wordpress site. I have looked around the net for an answer and found similar things or different ways that I can accomplish this but not in the way ...
1
vote
1answer
293 views

Set quantity of woocommerce product on page visit

I'm trying to set the quantity of a product on visiting a page. If the product isn't in the basket, the code works fine and adds the correct quantity. However, if I have anything in the basket and ...
1
vote
1answer
98 views

Displaying recent post excerpts on static front page

I'm trying to display a static front page with recent posts at the bottom. Specifically, I want to display just an excerpt from the recent posts, as would be returned by the_content() if I had a ...
0
votes
0answers
18 views

Use custom post_type from a different database

I want to display posts from one site on to a second site. I have succesfully done this: <?php $wpdb = new wpdb( '$DBname', '$Password', '$DBuser', 'localhost' ); $wpdb->set_prefix(...
2
votes
1answer
70 views

How to Add a Random Custom Gravatar in the WordPress Comments?

I have a client that has 5 different gravatar images, and would like them to be randomly used as the thumbnail for people's comments that have no Gravatar. I know how to change the Gravatar to a ...
0
votes
0answers
11 views

Advice needed: Specific contribution by users (form maybe)

I'm asking for your advice here, because there are so many ways to look at :( I hope you will help me out by replying with your opinion in this case. What I like to achieve is this: Visitors / users ...
0
votes
1answer
36 views

Sort by meta key within same day

I try to build something that can sort posts by day - and whithin the same day sort them with any meta value (integer) - like popularity or vote or what have you. So that, in the end, i get today's ...
0
votes
1answer
42 views

Delete custom meta

My custom meta box correctly saves my file upload. When the user wants to clear the field, they can click delete and I want to delete that meta data of the file url only. How can I assign the meta_id ...
2
votes
1answer
18 views

Updating Widget options in custom install.php

I am using a custom install.php in /wp-content/ to over-ride some defaults when creating sites in a multi-site install. For the most part, this is easy and working really well. I am having difficulty ...