Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (15)

3
votes
2answers
2k views

Customizing gallery shortcode in 3.5

I'm trying to customize the gallery shortcode using the new gallery system in 3.5 and I'm having a bit of trouble and can't figure out where I'm going wrong. This is what I've got at the moment (in ...
-3
votes
0answers
18 views

Wordpress backend: how to create something that looks exactly the same, but gives me more freedom in how to setup things?

i basically want to have the look of the wordpress backend, without its strict limitations to make everything exactly the wordpress way. I want to use my own pages, easy links etc. What possibility ...
0
votes
1answer
463 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, ...
0
votes
1answer
537 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
2answers
26 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 ...
0
votes
1answer
26 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 ...
-2
votes
2answers
48 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' ); ?> ...
0
votes
1answer
15 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
2answers
742 views

Set static page as default front page on newly created sites in multisite

How to set a Static page (example Sample Page with every WordPress install) as default fron page for every newly created site on multisite network. I mean when a new user creates a site on my ...
1
vote
3answers
6k views

How to import my YouTube channel into WordPress?

I want to know how to import my YouTube channel into my WordPress website? Example: I have a YouTube channel with 7 videos. I want to bring all the videos into my WordPress website's sidebar. If ...
1
vote
0answers
16 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 ...
-1
votes
0answers
16 views

Dashboard/Reporting Visualization Wordpress Plugin or Theme? [on hold]

Hello WP SE community :) I want to start doing custom reporting/dashboards for our clients and have them view them online. It will pull the data into our database through our API's I want to set ...
-1
votes
0answers
13 views

How to get a custom pretty-url hierarchy area of site that is driven by data in a non-wp table?

I want to create a section of a wp site that uses custom pretty urls to display data from a custom DB table (e.g. 'locations') Example urls: example.com/locations/asia/india ...
0
votes
1answer
36 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 ...
16
votes
2answers
17k views

How To Add Custom Form Fields To The User Profile Page?

The user profile page has the following fields: Username First Name Last Name Nickname Display name Contact Info E-mail Website AIM Yahoo IM Jabber / Google Talk How can more fields be added to ...
0
votes
1answer
673 views

How can I output the custom fields wrapping with HTML

I am trying to publish custom fields created using the plugin "Advanced Custom fields". I am able to display them on posts and custom post types as raw output. But I want to wrap html around the ...
0
votes
1answer
1k views

How to echo Widget Title in Custom Frontend-Template Box

I've created a custom Widget with the help of following code: // Creating the widget class wpb_widget extends WP_Widget { function __construct() { parent::__construct( // Base ID of ...
3
votes
1answer
770 views

Remote upload file to server B

I'm aware this might be some of the hardest coding to do ever, but thought of giving it a try. Im basically trying to detect all (mp3) filetypes uploaded through the Wordpress media upload and send ...
1
vote
0answers
14 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 ...
1
vote
1answer
511 views

Customizing default Mediaelement player

Good morning/afternoon everyone. Been playing around with the default wordpress mediaelement player and definitely loving it. I managed to customize the layout a little by overriding some css values ...
1
vote
1answer
543 views

Edit raw HTML of the landing page

I just created and set up a landing page for my blog. I use Weaver theme. I checked every checkbox to remove all the stuff I don't want ( Hide Page Title, Hide Site Title/Description, Hide ...
0
votes
1answer
3k views

How Can I limit the visible part of the short-description on the Category page?

How Can I limit the visible part of the 'short description' in the Category Page? I found the code in theme/woocommerce/content-product.php, but whatever I try doesn't do a thing. <?php ...
0
votes
2answers
417 views

Modify Gallery Output to render differently on a PAGE and a POST

I'm still learning Wordpress and slowly getting better, but my skill set is not up to par for the changes I am asking for. I need to customize the gallery output for two sections on my site: 1) ...
0
votes
1answer
415 views

WordPress in a Subdirectory

I am trying to install WordPress in a subdirectory. This is a new fresh install. Here is what I did: Assuming my site is example.com, and I wanted to install wordpress in example.com/wordpress A) I ...
0
votes
0answers
15 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 ...
0
votes
0answers
12 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 ...
0
votes
0answers
45 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
1answer
426 views

Trying to set specific image dimensions and crop with ACF

My question is about image sizing. I get how to the sizing/cropping stuff natively in WP add_image_size( 'thumb-crazy', 500,500, true); And then in the template type: if ( has_post_thumbnail() ) { ...
-2
votes
1answer
16 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, ...
0
votes
1answer
25 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 ...
-2
votes
0answers
23 views

How to delete site without login info? [closed]

I am a college student who currently holds the communication position for my service fraternity. Somewhere down the line over the past 2 years my organization has lost the login information to login ...
0
votes
3answers
1k views

Create single.php for specific category by category id

I'm trying to create template for specific category with id 1 for example. The template should be applied to all of the pages belongs to this category. So, it should be something like single-1.php. I ...
0
votes
2answers
539 views

How to add users roles dropdown in registration in wordpress

How to add users roles dropdown in registration in wordpress function myplugin_register_form() { global $wp_roles; echo '<select name="role">'; foreach ( $wp_roles->roles as ...
1
vote
1answer
28 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 ...
0
votes
0answers
21 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 ...
0
votes
2answers
898 views

Change HTML structure for custom menu in sidebar

I've been digging for documentation on how to change HTML output for the "Custom menu" which you place in optional widget. So its clear what I meen I have attached an image of the widget block here: ...
0
votes
1answer
33 views

Undefined index: custom_sidebars

I am implementing custom sidebars on a theme I am developing. Everything works fine when I add new custom sidebars. However, when if I remove these new added custom sidebars I get the error Undefined ...
0
votes
1answer
2k views

Sticky menu for WP custom menubars

This seems simple, except that I am not able to figure it out. In a wordpress theme, how can I make a custom menubar below the header image stick at the top after scrolling down the page? Example ...
1
vote
1answer
418 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
0
votes
1answer
22 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', ...
0
votes
2answers
444 views

Change Site Logo or Menu Logo Per Page

Background: Conference company with multiple events, on each event page would like to switch out the brand's logo with the event logo along with custom menu for event. Using standard WP install for ...
1
vote
0answers
7 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
61 views

trying to figure out how to use more that one image upload in the same section in theme customizer

i am trying to figure out how to use more that one image upload in the same section in theme customizer. the function is new WP_Customize_Image_Control. when you try to get the path of the image you ...
0
votes
1answer
23 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 ...
1
vote
0answers
22 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) ...
1
vote
1answer
621 views

Sort posts by multiple meta key values

I'm not new to wordpress, but I'm not very good at PHP. I hope someone can help me, since I already tried to search for a solution for over 5 hours with no luck. So I have an archive.php page where I ...
1
vote
0answers
10 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
10 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" ...
1
vote
1answer
24 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 ...
-3
votes
0answers
18 views

Comment form in my sidebar section [closed]

I want a comment form in my sidebar section (theme solar)When the user clicks send, they are immediately transported to a page that hosts all of the comments that everyone posts, arranged by ...