Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (17)

0
votes
3answers
150 views

How do make Wordpress to let alone my static home page?

I want to install wordpress in the root of an existing site, and temporarily use my new installation home as /home, while the rest of the static site is still there find-able by visitors/google. I ...
0
votes
1answer
570 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
2answers
1k 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 $key=>$...
1
vote
1answer
677 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
12 views

Custom Tags Archive - permalinks not working

I need to create Custom tags archive like normal tags in post_type "post". ex: i need this http://sitename.com/mtag/test work like http://sitename.com/tag/test add_action( 'init', '...
0
votes
4answers
2k 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 ...
-1
votes
0answers
7 views

Custom shortcodes for Events Manager

I've extended Events Manager plugin with a few Custom Attributes for the location, e.g. locationcategories or opening times. Now I want a shortcode for a list of all locations with a specific ...
0
votes
2answers
33 views

WooCommerce - Adding custom HTML to specific product pages

I'm trying to add some custom HTML to specific WooCommerce products for my client. I successfully learned to add this custom HTML to all product pages at once (more specifically to their descriptions, ...
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-...
0
votes
1answer
15 views

Custom Post Type by user

I made a Custom Post Type for events that can be added in the admin by only certain groups of users, like a Secretary. This Secretary can add some new events, but I want to display each user his own ...
3
votes
1answer
98 views

CSS rules that the theme gets from a function

I am trying to change the color of entry-footer in my Twenty Fifteen theme. My modifications in the child theme is overridden because when the website is rendered in a browser, WordPress outputs ...
0
votes
2answers
883 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
votes
0answers
16 views

Change category link. Lead it to a specific page

How can I change a link of any shop category in functions.php? I have 4 shop categories. To one of them I need change its href-link, it should go to specific shop page. How can I approach this?
0
votes
2answers
509 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 ...
0
votes
2answers
616 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
22 views

How do I integrate my Child Theme into a Custom Template?

I started working on this yesterday, and while I was able to successfully load my child theme, some of the site functionality went haywire. I suspect that I may need to add some code to my functions....
2
votes
2answers
408 views

Add nav menu CSS class to body

I would like to add the CSS class of the current menu item (and the classes of its parents & ancestors) to the current page body classes. For example, if the current menu item has a CSS class "...
0
votes
2answers
454 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

Page Permalinks: Custom URLs

I'm trying to make URLs that have different "routes", per say. I don't know how to explain it, but on the site I had to move, the owners want it to have different suburl URL directories. Problem is, I ...
0
votes
0answers
10 views

need to load full page on click to Next slide in wordpress

I want to load full page when click to next slide of slider in wordpress. and how can display slide number in page url. plz suggest .
-3
votes
0answers
18 views

Disable excerpt in custom theme

I copied the contents of a custom post using this code <?php echo theme_excerpt('50');?> now the problem is that all the contents is not showing since its too many. I tried disabling the ...
0
votes
0answers
18 views

Share certain tables wordpress

I am interested if someone somehow managed to share some tables from database. I have several websites on different domains but same database with multiple table prefix. The domains it's on the same ...
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: ...
0
votes
0answers
9 views

Custom Navigation Toggle not working?

I'm attempting to add the navigation toggle to my WordPress theme (iTheme's "Herschel" theme, which does not usually have a search function in the navigation/logo header). I've looked through many of ...
0
votes
2answers
481 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
1answer
817 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 ...
-2
votes
0answers
8 views

The main accent in “customize” does not work

Whenever I try to customize my blog, the main accent does not work. I am using the Nuclear theme and I'm updating on the Internet, I did not download anything. The background and everything else works,...
-3
votes
0answers
17 views

OOP help, how to implement custom lookup in my associative array within functions.php

I'm writing a function to execute on a custom action: //############## START OF NON WORKING CODE add_action( 'gform_pre_submission_1', 'myCustomFunction' ); function myCustomFunction( $form ...
-2
votes
0answers
14 views

get_categories - how to replicate with WP_Query?

I have a slider on my front page that makes use of WP_Query and there fore uses the_post etc like this: $feat_query = new WP_Query( $args ); if ($feat_query->have_posts()) : while ($feat_query->...
0
votes
1answer
27 views

How do I move my sites to a child theme without loosing customisation?

How can I make my websites that do not use a child theme, to use one, but not loose customisation, such as MENU, WIDGETS, and many other available in the theme at the time of change. This is something ...
0
votes
1answer
15 views

Wordpress query posts by custom post type not workng

I'm trying to display the featured images of my custom post type of 'instrument' I created the custom post type using the plugin 'Custom Post Type UI' The query seems to work, but the problem is ...
0
votes
2answers
18 views

Keyword search in multiple categories

I've spent a day or so on this now and I'm turning to the community for assistance. Firstly, I am trying to achieve something like this post: Wordpress Multiple Category Search In my theme template,...
-3
votes
2answers
27 views

How to hide the logo in wordpress using media query

I have 2 different logo in the WordPress site(light-logo and dark-logo). light logo will be visible when the navbar is transparent and dark logo will be visible when the navbar gets white background. ...
0
votes
1answer
196 views

Can Username and Password be passed to WP Login page in an IFrame?

I am using a real estate commercial theme, that uses a custom login/registration from on the frontend. The admin panel and option pages are restricted to Administrators, but if the theme is ...
0
votes
2answers
996 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
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
1answer
462 views

WordPress Template Part in iFrame

(As a preface, I know this is going to sound absurd, but please bear with me. I'm aware this is unideal and atypical.) What I need to do is put wp_nav_menu inside an iFrame so I can view it on a non-...
0
votes
0answers
16 views

can I separate two taxonomy (category) loops on one page

I have created a staff and teachers page with custom posts and categories. I currently have them display in an archive-teachers-and-staff.php template with no filter. I am using the date to get the ...
1
vote
1answer
1k views

Load post content into iframe

I would like to load a WordPress post into an iframe when a link on a WordPress page is clicked. This is the link I currently have. <a href="' . get_post_permalink($sight->ID) . '" target="map-...
0
votes
1answer
7 views

Wonderflux Framework Static Homepage

I recently started wp development and am trying to make a website on the Wonderflux framework. Currently, I set the homepage as a static page from the WP admin dashboard. Now I am currently editing ...
0
votes
1answer
429 views

Creating post custom field text area

I want to make, I guess a custom field for my theme. I'm not sure is it the right way to do this with custom fields. I searched a lot, but could not find what I need. So I'm hoping that some one ...
0
votes
1answer
583 views

Customizer API and add_panel(). Panel doesn't show

I try to add panel to my customizer but code below doesn't work (panel don't show in customizer container). My code: add_action( 'customize_register', 'customizer_test' ); function customizer_test($...
-3
votes
0answers
32 views

Create like button from scratch

Would someone kindly give me a pointer on direction to take to create a simple test data unique to each user that can be updated by other user from front end and saved in database. I know it sounds ...
1
vote
1answer
428 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
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 ...
0
votes
2answers
815 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
0answers
29 views

How to create a global variable in a plugin to use in another plugin

I have a variable in a plugin that stores values ​​to her being fired, these values ​​are entered in the [post_title] but before that he a variable of $post_title_template name plugin and would like ...
-2
votes
0answers
18 views

ADD JS/HTML in the homepage

I am new to WordPress and haveing some difficulties. I need to add some javascript and HTML to my main homepage. My website is this Go the tab " Book a Cab " And there I need to show my custom form ...
0
votes
1answer
173 views

What is the best way to setup Wordpress for version control and PhpStorm while allowing updates

I have an active WordPress website that I would like to put under version control. Since I do keep pretty up to date on core and plugin updates I would think that those items should be best kept out ...
0
votes
0answers
8 views

How do i add a post to custom menu?

I am trying to add one of my recent posts to one of my custom menus, i legit just did it but now have forgotten please help. (using mac)