Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (15)

1
vote
1answer
681 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

Show custom message/info for authors in add/edit post page

I have a multi author blog and i need show a global info message in top of add post page, so all authors can read it when they come in this specific page, how i can add it? Thank you
3
votes
2answers
2k views

Wordpress most popular post own code, per week

The plugin Most popular posts doesnt support WPML and therefor I have tried creating my own. I have found this tutorial in creating your own code for showing the most popular posts on my site. ...
2
votes
1answer
42 views

How to change URL Custom Page?

My Page Custom URL: http://abcd.com/watch?name=video-title How can I change this url to http://abcd.com/watch/video-title where watch is a custom page? My functions.php code: function ...
-2
votes
0answers
7 views

Custom navigation in custom post type [on hold]

I'm working on a site that is basically a single page site, but with product details. It's based on the Sydney theme. Each product that is shown in the portfolio is a custom post type. When you click ...
-1
votes
1answer
484 views

How to redirect to 404 page not found page

I have created a custom template for a custom post in a childtheme. if some conditions are not satisfied i want to redirect the page to 404 page not found page. if(false) { //redirect to 404 page ...
0
votes
3answers
37 views

How to create custom layouts and static pages in themes for clients

How do I build goodlooking, custom pages into my themes. I've decided to use underscores to create custom client themes, as I need complete freedom in design, and all the tutorials I've found on theme ...
3
votes
1answer
896 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 ...
0
votes
1answer
21 views

How to send email with wp_mail() with from email taken from contact form instead of the host?

I have set up SMTL like this, add_action( "phpmailer_init", "send_smtp_email" ); function send_smtp_email( $phpmailer ) { ini_set("sendmail_from","xyz@gmail.com"); ...
0
votes
0answers
18 views

Multiple Passwords to protect WP pages [duplicate]

I have been using a plugin that has worked great up until the latest version of WP. There has not been any development on this plugin in the past 3 years so I assume it wont be fixed. Now I need to ...
0
votes
0answers
13 views

How do I let users specify interests on signup and have this reflect content displayed on homepage?

I'm looking for something that will allow my site to have the following functionality: A user creates a login for my site. When creating a username and password, they also select from a list of ...
0
votes
2answers
27 views

enqueue script on custom post type archive page

How do I enqueue a script on the header if the user is on an archive page of a custom post type? The custom post type is called limitedrun and the page is called archive-limitedrun.php. I tried this ...
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
1answer
539 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
0answers
36 views

Carousel with 4 Items per Slide | Custom Post Types | Bootstrap [closed]

I am struggling with the Carousel Items - I want to show up 4 Items (custom posts) per slide. What did I wrong? And the other slides (slide1 and slide2) should only be displayed if so many post types ...
1
vote
1answer
568 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 ...
2
votes
2answers
574 views

How to get shortcode working from custom meta field

I've created a simple text custom meta field for pages. I can successfully enter plain text which prints on the frontend of the site with no problem. I want to add shortcodes also. If I add a ...
0
votes
1answer
22 views

How to add custom 'layout' buttons to wordpress editor?

I'd like to modify the editor by adding some 'layout' buttons. Ideally, I'd like to add the ability to add some html 'partial' by simply clicking a button. This is to help my client to create ...
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 ...
1
vote
1answer
669 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 ...
0
votes
1answer
14 views

Add commentmeta custom field to every published comment with SQL

I am trying to add custom commentmeta "likes" with 0 as default value to every posted comment. I have this query but I dont see any error there, but still it doesnt work. Can anyone help me to solve ...
0
votes
1answer
33 views

Query 1 custom post type, each day, alphabetically

Hoping someone can help - for some reason my brain is mush on this one and I can't seem to find a similar example via Googling. What I have is a CPT called "products" for example and what I need to ...
-3
votes
0answers
11 views

Insert Cost Of Goods as seller [closed]

I'm using woocommerce cost of goods. I want to add cost of goods field in seller dashboard. I've added cot of goods field and insert cost of goods succesfuly but when I checked in admin dashboard in ...
0
votes
1answer
303 views

pagination in woocommerce order history page

Please help me to add pagination in my order history page. Pagination should work like WooCommerce products page. Here is my code: <?php $customer_orders = get_posts( apply_filters( ...
0
votes
2answers
439 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) ...
1
vote
2answers
825 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 ...
0
votes
1answer
12 views

Highlight specific user with custom field value

I'm working on a Wordpress project with some friends from school. But there's a problem with highlighting a user on the website. The idea is to create a 'User of the month' thing. In the user ...
0
votes
0answers
7 views

Using a separate image server with WP

I'm interested in figuring out how to use a public image server instead of Wordpress' root image directory for managing media on a new Wordpress site. Background: Client currently runs a blog with ...
-1
votes
0answers
19 views

Addvance Custom Field Not show properly on upload page [on hold]

I am new in WordPress.I tried to make a page as show in my image.I am using theme through which I am not able to add custom fields on my page.How can I add Custom field on my upload Page.
1
vote
0answers
15 views

WooCommerce Template Override or Hooks for update safe customization?

I'm about to create a custom online store using WooCommerce for a client and I wanted to know some people's opinion on whether overriding the WooCommerce template structure or adding html code through ...
2
votes
1answer
35 views

Theme-Config tab in admin Pannel?

Sorry, for my broke english. There are few questions that I'd want to ask that got me quite confuse. I will try to phrase and describe my question the best way I could. Starting with a bit of ...
1
vote
4answers
3k views

How to wrap every image in a post with a div?

When I add an image to a post I want it to be in a div e.g. , and I want that to be done automatically, so I don't have to do that in HTML editor. I don't want to use js to accomplish this and by the ...
0
votes
1answer
19 views

How to append custom text to the output of 'categories widget'?

How do I customize the "categories widget" to append additional text on the sidebar display? from category 1 category 2 category 3 category 4 to category 1 folder category 2 folder category 3 ...
1
vote
1answer
1k views

Programmatically add a custom page/path/url/route to WordPress

Conceptually what I want to do is super simple. In my plugin, I want to add a single path/route to my wordpress site: [mysiteurl]/testpath ... that loads a particular file, like: ...
2
votes
1answer
28 views

How to exclude certain widget from showing up on home/front page? [duplicate]

Without using a plugin, how do I prevent/exclude the sidebar widget "recent posts" from showing up on the home/front page? I do want it to show on the sidebar of rest of other archive/post pages.
1
vote
1answer
26 views

Changing editor-style.css style

I am using the following code in my function.php file to add a Format dropdown to the WordPress visual editor with just one option, Custom 1. <?php function custom_styles_button($buttons) { ...
0
votes
2answers
547 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 ...
0
votes
1answer
2k views

Retrieve and display data from custom db table in admin area?

So, i'm having a bit of an issue with a plugin i'm developing, I wonder if anyone can shed any light on the situation, as many, MANY searches have come back with zero help. :-/ Basically, my plugin ...
0
votes
2answers
467 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
21 views

Can not be able to insert the custom post taxonomy

here is my code in which i can't get insert the term in custom post type taxonomy .as in the the code in wp_insert_term($term,$taxonomy,$args); cannot work , while it is working if i put a string ...
0
votes
0answers
8 views

When add new custom post then automatically create category same postname [closed]

i'm using cpt ui plugin .i'm create a Post Types and Taxonomies registered by Custom Post Type UI. in this register post add new then automatically added to category not create manually create ...
1
vote
2answers
3k views

Function to return true if current page has child pages

I'm trying to create a simple function to do a "status test". Goal is to test and see if the current page being viewed has any child pages or not. Using this to alter layout to accomodate child ...
0
votes
1answer
16 views

Add custom columns in custom post type browse page

I made a plugin which adds a "member" custom post type. I customized the edit view (with the editor hook) to get only the fields I want and store them in the database. I have fields like "name, ...
1
vote
0answers
16 views

User can have multiple shipping addresses [closed]

Howd, folks. I'm needing a way to allow users from a e-commerce have a infinity number of shipping adresses, but I can't figure how. I get a couple of plugins, but they don't let me get a list of ...
1
vote
4answers
1k views

Capability to edit own posts and not others

What is the capability that let users to edit their own posts and not others? I am trying to enable the post authors to avail a plugin function only on the posts they own. The permission to access ...
0
votes
0answers
16 views

Child 'page' of 'private' looses /parent/ in permalink after child update

For example, I have the site structure, where I want to publish child pages to be indexed by Google before their parent page is ready. I can't do this because I can't choose the parent page for ...
0
votes
1answer
799 views

Load more posts with multiple queries

I've been developing a theme which uses the load more ajax plugin, everything is setup and working great with the main query. But, once I setup a new query for popular posts, the load more posts ...
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
89 views

Page load requires a trailing “/”

I have a new problem today which I didn't have yesterday. Nothing in my code had changed, which is the most confusing part. (Which means the error maybe started before some kind of cacheing?) None ...
0
votes
1answer
16 views

Static home page ignored

I am trying to show an static page instead of posts. It is defined accordingly in Settings-Reading, and it works fine. It uses a front-page template. But activating Polylang (since my web should be in ...