Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

0
votes
0answers
6 views

How to appoint different users to different pages?

I am having this problem, i need to separate subscribers(all one user type) into two different groups with access to different pages, pages restricted to one group is available to another though they ...
0
votes
0answers
15 views

Creating custom database table with crud operation

I am new to wordpress. I going to work on one project that is having 400 pages. Out of that only 3-4 pages are the dynamic pages and rest are the static pages. What I meant to say by this, most of ...
0
votes
0answers
7 views

Adding a custom sitemap to Yoast sitemap index

I have 2 custom sitemaps that i would like to add to the sitemap index that is generated by the yoast wordpress seo plugin. These sitemaps are generated by my plugin so i want to also use my plugin to ...
0
votes
2answers
20 views

Can readers download zip files from WordPress sites?

Is it possible to store zip files on WordPress and make links to them such that readers can download the files? I am thinking specifically of zip files that contain Mathematica applications ...
0
votes
0answers
7 views

Link a page type with custom WP_query variable

Basicly i want the URL : http://localhost/brands/[brand-name] to be addressed to a page template single-brandname where "[brand-name]" is a custom variable introduced in permalink. The Main Brands ...
-1
votes
0answers
9 views

How to remove (or replace) add to cart button for products already in the cart (but not only on the product page but on the shop page as well)

I am new in here (this is about woocommerce) Does anyone have an idea of how to disable "ADD TO CART" button on the shop page (and everywhere else) for products that had been already added to cart? I ...
0
votes
1answer
17 views

Custom Single Post Type not referring to single-post-type.php File

I've defined a Custom Post type called "Press", I'm trying to modify the Single Posts template for that Custom Type. The single posts custom file is called "single-press.php" I've tried using an if ...
0
votes
0answers
11 views

pre_get_posts with custom SQL

I have a scenario where there is a custom form on an archive page. I want to use pre_get_posts to modify what is displayed on the archive page, and show the paginated results. The issue is I first ...
0
votes
0answers
6 views

Yoast SEO Plugin displays “Page not found” for all custom page templates even though they work

I have created custom single pages. By custom page i mean mypage.php and this page will then display custom content. The pages all work perfectly fine and i have hooks in place to add a custom title. ...
0
votes
1answer
14 views

Types Plugin - Display options(select) in template

I have created a custom "select field" in admin panel using types plugin. Is it possible to get the values and use it somewhere outside the plugin(in theme or in another plugin)? I like to update the ...
0
votes
0answers
8 views

How To Display Admin Toolbar On Custom Template

I am trying to get the admin toolbar to display on a custom page. I am using a custom php file for this. The basic structure of the page is like this and this will display the basic structure of my ...
0
votes
0answers
11 views

Create new table vs post_meta table database dilemma

I'm working on custom function that will store post data but I dont know which method to use. I have meta box in edit post area that will store diferent videos (embed code) for each post will have ...
-1
votes
0answers
7 views

Issue with Multiple themes

I have two themes. Theme A and Theme B. I am switching theme using Jonradio plugin based on URL. When I enable Theme A, Theme B's posttypeB is disabled. When I enable Theme B, theme A's footer is ...
0
votes
0answers
14 views

Modify default widgets

i want to add a class to the link inside the footer widgets. how can i do that ? I found a way to add a class to the widget it self but not to the link inside of it ! The concerned widget are ...
0
votes
0answers
14 views

Change post template the proper way

I'm trying to create an option on edit posts screen (backend) to select different post template based the selection and I need your opinions guys if that is the proper way. Here is what I've tried so ...
0
votes
0answers
9 views

Backend as to select combo

I wondered how I could do one thing in wp. I need to show X combo select a page, depending on the option chosen in the display select one thing or another in the next select something else ... etc. ...
0
votes
0answers
4 views

How to add images to widget instance from backend

I am working on a project which has content(no posts) and I want to give complete control to user to change and edit content from admin panel. I have created widget added fields to it but I don't know ...
0
votes
2answers
28 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 ...
0
votes
0answers
9 views

Add Custom Fields to Tags

I have been searching how to add custom fields to taxonomies, but all what I found (that works) is how to add custom fields to category (below is my code), but I dont know how to edit it to add custom ...
0
votes
0answers
15 views

Tag template pagination

I need to ask about how can i add pagination to my post tag template pages this is the code and link of the page http://ca.unitysofts.com/tag/fortnight-focus/ <?php get_header(); ...
1
vote
1answer
39 views

Custom Widget Creating PHP Exception When Placed In Its Own PHP File

I have a custom plugin created and i have created a widget. At the moment this code is included in the base php file for the plugin and its working fine. I want to move the widget and all future ones ...
0
votes
0answers
9 views

customizing wordpress theme slider with switch statement

i am working on an assignment for wordpress , i need help in following matter, im using wordpress today news theme, the link of my current work ca.unitysofts.com in upper three slider , while ...
0
votes
0answers
8 views

How To Add Custom Meta Field Select/Radio Box to Post List Bulk Edit Mode

How can you add a radio fieldset to a custom post-types post list bulk edit screen for a custom meta field? Please provide in depth code example and explanation and thanks in advance. The ...
0
votes
0answers
14 views

let users add multiple divs in static page

I'm pretty new to wordpress and I'm using twentytwelve as a theme. I've created a very simple custom template for some pages: <?php /* Template Name: New Test page*/ ?> <?php get_header(); ...
0
votes
1answer
13 views

How Should Custom Functions Be Called For Single Posts?

I have been trying to find the answer to this. I want to use the best method performance wise, but also want to make this solution portable as possible. I have created a plugin that adds multiple ...
0
votes
0answers
9 views

How to structure my website? - Multi level [closed]

I'm building a travel website and I'm not sure what would be the best way to structure my content. So, I would like to have a first page with a list of countries, then on a second page a list of ...
-1
votes
0answers
13 views

Portal build using wordpress. [closed]

I am planning build a website where merchants can list the products they are having. To achieve that one, We should do the following things 1. register/login. 2. Secured Product upload form(prevent ...
0
votes
0answers
33 views

Hide the Wordpress CMS and Integration Plugins from Source [duplicate]

I looked alot on the internet and still not figure out the exact manager of thing I want. First of all sorry if i am going wrong on question but here it is: Websites like www.bewakoof.com and ...
0
votes
1answer
31 views

Make tag archive display post are ordered by post format

I would like to set up an archive page for tags where posts are displayed separated depending on post format, first post-format-aside then an archive with all posts except the posts already displayed, ...
0
votes
0answers
35 views

Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn't work

I've added to the normal WordPress gallery popup (when clicking "Add Media" in the WordPress editor), in order to allow my custom gallery type to be selected (which interacts with / uses the main ...
0
votes
0answers
12 views

WP Query for newest post of each taxonomie of a custom post type

I'm trying and googleing since 2 days, but cant figure out how I can display my 8 needed posts. Details about my structure: I'v created an custom post type "projects" where all the posts about ...
0
votes
0answers
24 views

How to determine if the use of a commercial theme will speed up development? [closed]

I hope this question has its place here. When asked to build a site from mockups I often wonder if using an existing commercial theme will actually save me time compared to using some "boilerplate", ...
0
votes
0answers
16 views

Show content if deadline is passed

I am using Date Custom Field in a scholarships information website and using this code to get scholarship deadline. I just want to show two words "Applications closed" if the application date has been ...
0
votes
1answer
15 views

Custom search results

I have a Wordpress custom search form which is used to search for floors into various buildings. For example, when a user searches for a floor between 1000 and 1500 sq ft, he will get a list of all ...
0
votes
2answers
27 views

Static Front Page settings - distinguish between Front page and Post page

Let's say we go for Admin - Appreance - Customize - Static Front Page There we can see the Front page and Post page options when we select A static page These two options are not there if we pick up ...
0
votes
0answers
10 views

Get adjacent post data, ordering by custom field values (by Wp-query?)

I want to build a custom version of the adjacent-function of wordpress post. I have two custom field values for each post, my layout is the following: metafield1 value 1 & metafield2 value 1 | ...
0
votes
2answers
29 views

Installing new theme on running site

I have a running Wordpress site (3.9.6). Now a new theme should be used and for this theme also some customizations have to be made (content, some WP files like page.php and so on). Additionally, I ...
0
votes
1answer
19 views

Inserting two categories

I am trying to define two categories together in a post. please tell me where i am doing wrong. 'post_author' => $user_id, 'post_status' => 'pending', ...
0
votes
1answer
25 views

How to Register and Display Widget for Custom taxonomy

I have registered a Custom Taxonomy Named as Album, Now i want to register and display a custom widget like category to display recent 'x' albums with thumbnail on my sidebar. Below is a piece of ...
0
votes
1answer
49 views

Wordpress tag or archive php file customization

I am not that pro with php but i have good concept and can find my way in cleverly, this forum have always put me ahead of the game due to people like you who share as the care, I have a site that ...
2
votes
0answers
47 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 ...
1
vote
0answers
18 views

two factor authentication

i am working on a two factor authentication plugin using a third party API. API and WordPress plugin setting page are ready. now i need break default wp login process in two parts like this: This is ...
0
votes
2answers
134 views

Contact Form 7 - Form name blank [closed]

I'm using WordPress 4.2.2 and the "Contact Form 7" plugin version 4.2.1. But when my contact form shortcode outputs the html code the name="" attribute is blank and W3C html validator is giving me ...
0
votes
0answers
48 views

echo value from 'select' field type into page template using cmb2?

I'm using CMB2 plugin to add metaboxes into a custom post type. I'm adding the additional metaboxes via functions.php onto child theme. It may worth to mention that parent theme/custom post already ...
0
votes
0answers
13 views

Products with Batch (Lot) Numbers

We are developing a site to sell products which are manufactured in batches (lots) and which have expiry dates. Is there a good (best) way to handle such products so that the batch number(s) and ...
-1
votes
0answers
15 views

Create table of content page for all posts/categories?

Not for contents of one page, but general ToC, like that: 1. Category Post 1 Post 2 2. Category Post Post
0
votes
0answers
14 views

Creating plugin - beginner level

I'm trying to create my first plugin and i don't know many things. I created an admin menu with 3 submenus. In first submenu i have a form like <form method="get" enctype="multipart/form-data" ...
0
votes
0answers
33 views

Multiple Loop resulting in duplicate Posts

This code results in a display of a category title and one post below, it loops through every category in a custom taxonomy, works but the posts are duplicated on page/2/ if I type in that URL, I ...
0
votes
0answers
17 views

Auto overwrite: Plugin edits not sticking

I am trying to edit a plugin called "Calls to Action" to add personal functionality and remove all the extra stuff I don't need; and WordPress or the plugin keeps overwriting my edits. I have even ...
0
votes
0answers
17 views

Custom Field value to

I don't know how I could solve this problem. I'm importing a csv file and this contains also an imglink (external) and it will creat a post draft for me. What I want to achieve is that the imagelink ...