Linked Questions

0
votes
1answer
40 views

How to protect own PHP code from Wordpress updates

I have written several own shortcode scripts which I place in the shortcodes.php file. My Wordpress installation is set to update to new Wordpress versions automatically, which is a good thing. But ...
0
votes
2answers
30 views

Theme-Check plugin using MY_THEME check error genrate

I have created plugin in require file custom-post & shortcode but theme cheaker error genrate as below . WARNING: The theme uses the add_shortcode() function. Custom post-content shortcodes ...
0
votes
1answer
51 views

how to echo meta tag in header using php

I need to display a meta tag in header for singular custom post type "communications" like this: <meta name="citation_title" content="single post title is here" /> I tried to use this code : ...
0
votes
0answers
20 views

How to register custom post types like ebook and taxonomies with code?

There are more than 10 plugins to create custom post types and taxonomies. But one problem to use that is if accidentally plugin deleted, all works related to that plugin will be deleted.So I want to ...
0
votes
0answers
6 views

How to fix the warning shortcode function generated by Theme Check? [duplicate]

I searched on the internet but I still don't know how to fix it. I solved most of the the errors in WordPress Theme I am developing except for one WARNING. Please refer on complete error lines below: ...
5
votes
2answers
279 views

Should I create a theme or a plugin?

I'm working on a pro bono project to try to learn WordPress. I've been provided with a rough design (see screenshot below) and I'm struggling trying to think of how to approach the issue. My main ...
0
votes
1answer
51 views

Is a custom post type considred a plugin?

I am reading up on custom post types and taxonomies. I am new to Wordpress development, and just trying to get a firm grasp on custom post types. Upon creating a custom post type: <?php /* Plugin ...
0
votes
1answer
47 views

Take control of WordPress before functions.php

I'm developing theme and I want to make page cache of static pages in my WordPress theme (and basically I know how to implement it) The problem is that when making theme - the first time when I "get ...
3
votes
1answer
561 views

Add “Last Edited by” column to custom post type list table

Currently I use the "Admin Columns Pro" plugin for Wordpress to modify some of the columns in the backend. The plugin contains functionality to display the post (or in my case, product) author as a ...
0
votes
0answers
21 views

Where do I add my own configuration needs and how do I access them?

Somehow despite having been developing web sites since the late 90's I'm only now working on my first WordPress site. And I'm having a bit of trouble understanding the organization of WordPress and ...
0
votes
2answers
427 views

Warning after create Custom post type with Roots theme

I've created e Custom post type with Roots theme, adding the custom script inside functions.php like require_once locate_template('/lib/custom-post-types.php'); // Custom post types After ...
0
votes
1answer
58 views

Directory structure for plugin changes

When I'm working in Wordpress, I quite often need to make adjustments to plugins. The recommended method, as I understand it, is to take the plugin file I'd like to modify (say, mypluginfile.php), and ...
-1
votes
1answer
34 views

Best practice to create required pages

Some times, when we work on custom wordpress themes, we need required pages. For example - custom login page. Some times, when user change slug, page template or something else - it a very difficult ...
0
votes
0answers
48 views

How to make shortcodes parse in two different themes

I've got a mobile and a desktop theme for my website , but the shortcodes in my desktop theme are a lot more functional than the ones in my mobile theme, I use only the shortcodes in my desktop theme, ...
-1
votes
1answer
81 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks ...

15 30 50 per page