Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (17)

0
votes
1answer
556 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, category-{...
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
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
0answers
16 views

Too large translation (.mo) file - localization error

The problem - it is impossible to translae the template. The initial theme has a folder /Language In this folder, only one file - en_EN.po In principle, this should be enough. I have created on its ...
-3
votes
2answers
2k views

Consolidate 'add-to-cart' buttons into one 'add-all-to-cart' button

What I am trying to achieve is to have one add-to-cart button that will add the selected quantity of multiple products, featured on the catalog page, into the basket. Here is an image of what I aim ...
0
votes
0answers
12 views

Will too many overridden css rules lead to performance issues

I am customizing the avada theme for my needs. Since the theme gives many options to style the fronted via its admin panel, I have to write many lines of simple css code for custom elements etc. Based ...
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
23 views

Add a booking system to website, which can be adjust by customers [on hold]

I am already searching a long time for a booking plugin. I found a lot of booking plugins, which do work well, but just the admin can adjust the free timeslots or bookable days. I need a plugin, where ...
1
vote
1answer
670 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
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: [filepath-to-my-...
56
votes
7answers
33k views

Organizing Code in your WordPress Theme's functions.php File?

The more customization I make to WordPress the more I start thinking about if I should be organizing this file or splitting it up. More specifically, if I have a bunch of custom functions which only ...
-2
votes
0answers
23 views

How to create an inquiry form in Wordpress [on hold]

I am currently working on creating tour theme for wordpress. I am looking for ways to create an inquiry form that visitor can submit inquiry. After visitor submit the inquiry, it will - ...
0
votes
0answers
34 views

the_title variable

I have a problem with a wp theme and her reservation function. I had to make some modifications to the theme for add a second page with the "houses" accommodation. Now I have a problem in the ...
-3
votes
1answer
19 views

How to give different user access to different people?

I have a video tutorial website where I have to provide videos. For that purpose I have to give different user access to those who login to particular courses. So can you please help me what is the ...
0
votes
1answer
28 views

Generate custom output for page/URL in a plugin

In my plugin, I want to be able to catch a slug - say 'testpath', as in www.mysite.com/testpath and output whatever I want from my plugin into the page. I in WP Admin I could create a page called '...
0
votes
2answers
572 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
2answers
441 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
24 views

How to display all custom fields associated with a post type - IN THE ADMIN AREA?

I know know how to get all the custom fields from a custom post type, that's easy. However, when I create a custom post type, it displays a beautiful page automatically in the administration part of ...
-1
votes
0answers
10 views

Add custom Navigation and footer in Magazine theme

I am having one website where we have navigation menu and footer are coded in asp.net using jquery. One of the link from this website points to WordPress blog. Now when user comes to wordpress blog I ...
0
votes
2answers
867 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 ...
-3
votes
0answers
20 views

WordPress Site --> Integrate with Coub (Meme Generator) [closed]

I need to find a developer FAST that my company can hire to do a high-profile project by SUNDAY. I know this is crazy, but we have a budget. And there's a technology that should be able ti accomplish ...
0
votes
2answers
23 views

Change Background Color For CPT Template

Please help. Anyone knows of the proper way how to change the background color for a custom post type template only? Using chrome's inspect, I saw that my theme uses the ID of "#main" for all the page'...
0
votes
0answers
10 views

overriding wp_new_user_notification function

Myself trying to customize the wordpress user registration greeting email by referring this link and my code as follows. function wp_new_user_notification($user_id, $plaintext_pass) { $user = ...
0
votes
0answers
29 views

If user_name empty then message [on hold]

If user_name empty then message is sent. Not currently working. $user_id = get_current_user_id(); $first_name=ThemexCore::getUserMeta($user_id, 'first_name'); if(empty($...
0
votes
1answer
808 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
3answers
2k views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
0
votes
0answers
28 views

URL Rewriting on CPT

My website has Custom Post Type and I want to have beautiful URLs but i don't know how to do. Ex: https://www.mywebsite.com/boutique/?countryname=allemagne#!/countries=252 TO BE https://www....
1
vote
1answer
26 views

How to use a hook to override an update_post_meta call in a plugin?

A plugin I'm using contains the following code: $download = array( 'post_title' => $title, 'post_content' => '', 'post_status' => 'publish', '...
-3
votes
0answers
11 views

CIMY User Extra Fields, Tab Index [closed]

So I've installed CUEF in order to add a couple fields to my registration form. However, the tab index is off and when I tab to the next field, it skips the 2 new fields and jumps to the submit ...
0
votes
1answer
531 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() ) { ...
8
votes
1answer
100 views

Can we use one WordPress installation for multiple databases, domains and content directories

I have seen some questions which look similar, but they all ended up with multisite. For maintainability, performance and security, I don't want to use multisite. So please bear with me. It's a ...
0
votes
1answer
37 views

Set a Custom Post Type as a Homepage

Im trying to set up a custom post type single post as a homepage. I have custom plugin, it registers CPT called STACKS, Im using it to build various one page scrolling pages... It has its own custom ...
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 ...
0
votes
2answers
491 views

How to create a custom Wordpress front page

I want to create a custom front page for a Wordpress site, which will have an image, some text, an embedded login form, and a metaslider slider, and nothing else (no menu, no sidebar, no footer). ...
1
vote
1answer
427 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 /%category%/%...
0
votes
1answer
28 views

Child Theme header1.php file not overwriting parent theme's header1.php file

I am trying to add a custom header navigation to a WordPress site using a child theme (I'm using the Alphabet theme). I determined that I am using the header1.php file according to the styling inside ...
0
votes
0answers
20 views

customize exisiting wordpress menu item

For a school project I am trying to manipulate the existing primary menu with a plugin. The result should be: if the plugin is activated, it edits the 'Login' button to be conditional: if something ...
2
votes
1answer
24 views

Is there a filter hook that I can use to change how taxonomy term names are displayed?

I need to hide a custom taxonomy's terms' names on the frontend while preserving them on the backend. Instead of the terms' names I need to display pseudonyms. I can't find a single filter hook to do ...
0
votes
2answers
794 views

Widget Option is Missing

My Widget Option is missing in the Dashboard area. How can i make that appear? I have downloaded this Blank Theme from Chris Coyiers site. sidebar.php <?php /** * @package WordPress * @...
0
votes
2answers
493 views

CMB select with data from CPT

I'm using the CMB framework for creating metaboxes (https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress) and I want to add a select box which prepopulates with titles from a custom ...
14
votes
5answers
10k views

Validating Custom Meta Box Values & Required Fields

Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes. I am looking to get expert opinions on how ...
0
votes
2answers
957 views

Load new Posts on Scroll on Page

See this reference site: http://alwaysjudging.com/archive/ It's loading new posts on scroll down, similar to Infinte Scroll plugin. (But I'm unable to get the Jetpack Infinite Scroll plugin to work on ...
0
votes
2answers
1k 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: ...
1
vote
0answers
22 views

TinyMCE custom dialog with selectbox not working

For a theme I add a custom menu to Wordpress' TinyMCE using ed.addButton. Now some of those menu points have more or less elaborate options, so I thought I'd use the custom dialog function of TinyMCE ...
0
votes
0answers
14 views

Possible to customize wp_link_pages Number to custom url

I have using muliti-site network with wp-4.3 version. For Better seo functionality need some customization. wp_link_pages() function to generate pagination with number. How to manage number to own ...
0
votes
0answers
27 views

How can I add rewrite rule for custom page?

I'm showing child categories data in custom page using wordpress. Problem is that i'm fetching those child categories from parent category slug. www.example.com/digital-post-page/?cp=category-slug ...