0
votes
0answers
7 views

Counter of posts ever posted - even deleted ones

I'm trying to figure out how can I display the amount of posts ever posted - not only the currently published, draft + pending etc ones, but even the deleted ones. I assume that there has to be ...
0
votes
0answers
3 views

All posts showing same comments

I am working on a wordpress site, and I am facing a serious issue, I have posted a test comment on a post but same comment is showing on all posts instead of specific post can anyone help how can i ...
0
votes
0answers
2 views

Blog post date not in format required by schema.org

I'm trying to display blog posts using the BlogPosting schema from Schema.org, but I am having difficulty getting the date to display in the required format. Currently, the ...
0
votes
2answers
6 views

Can you add shortcode as a menu item link?

I want to use the Ninja Forms pop-up modal from a link in my menu. I used this plugin to make shortcodes work in the menu but couldn't get it to work: https://wordpress.org/plugins/shortcode-in-menus/ ...
0
votes
1answer
8 views

Metabox not being added

what is wrong with my code ? why it doesnt add meta box ? add_action('admin_menu', 'clivern_plugin_top_menu'); function clivern_plugin_top_menu() { add_menu_page('My Custom Page', 'My Custom ...
0
votes
2answers
11 views

Using if statement in index.php instead of creating separate template files

I've to add just a line when the user clicks on a category link or search for something, so I thought to do something like this inside the index.php instead of creating other template file like ...
0
votes
0answers
5 views

Woocommerce get category image full size

i'm trying to get the full size image of my category products. $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', ...
0
votes
0answers
13 views

Creating Action Hooks For Automatic File Inclusion

I want to create a hook for automatic file inclusion in my plugin, but I am finding my stuck moments. May be somebody could help me out. Here is what I tried: $args = array( "url" =>"" ); ...
-2
votes
2answers
22 views

I'm creating mmy own theme and selling it. How are themes updated?

Is there a link, or does someone know a way to check what version of my theme my customers are using and how to notify them to update their theme? I am selling a theme that I am hosting myself (NOT ...
0
votes
0answers
9 views

How to display post content with some html tags?

Trying to output an xml file for single posts. In such file I need to display the content of each post in a way that can be accepted in xml format. After reading on the internet (for five days) I ...
2
votes
3answers
75 views

Should I write a PHP function in home.php?

I am trying to learn WP Theme development. And as I have understod all "wp core" functions should be placed inside functions.php. But what about custom functions? Lets say I would need a simple ...
0
votes
3answers
13 views

Where should I use post_class()?

I am trying to learn WP Theme development. And as I have understod it is important to use "post_class()" since plugins may need to use it. But what I not understand is where I should use it? Should ...
0
votes
0answers
10 views

Product Category Page in Full Width

Initially the Product Category page is divided into Content Area (70% width) Side Bar Area (30% width) I have removed the side bar area using function.php. However the content area is still in 70%. ...
0
votes
0answers
17 views

do action inside a class is not working

I am trying to create my custom hook and call it from within a metabox class. Here is the pattern: metabox.php -- <?php require("libs.php"); require("test.php"); class metabox() { function ...
0
votes
1answer
19 views

Is_template how to add one more template

I have wordpress theme which is adding some scripts and css trought functions php. I want to add one more template file , but don't know how. Any ideas? This is what I have. Will be happy for any ...
0
votes
1answer
26 views

Reduce font size [on hold]

I need your assistance regarding my problem. In fact, I've tried to change the slider's font size on my website : http://compil2rai.com/ on the style.css file, but the changes are not taken in ...
0
votes
0answers
6 views

ACF gallery hook?

When updating a gallery with a new image or deleting an image, is there a hook which gets called? With a standard image field there's add_filter('acf/update_value/type=image', 'my_acf_update_value', ...
-1
votes
0answers
9 views

How to force woocommerce to have same price for all countries?

I am creating a shop and I am using woo-commerce and I want to have same price for all country users . currently,when user selects a country ,product price changes ,I have set US dollar as default and ...
1
vote
2answers
8 views

How to remove duplicate sub-menu name for top level menu items in a plugin?

I have written a custom plugin for wordpress. Once I add a sub-menu to the plugin I get a double entry for the top level item: I would like to disable the second "TopLevel" menu item so it would ...
0
votes
0answers
6 views

can i disable cache plugin in shabbat?

I created a plugin called wp-shabbat, its checks the user ip location and calculate if it shabbat time, if so the plugin creates on the fly page that presents user time to come back and with 503 ...
0
votes
1answer
11 views

Creating custom Menu for custom theme

I want to create a custom menu for my theme. The default menu architecture created by wordpress wp_nav_menu() function is made by <ul> <li> tags. But my custom Menu architecture is: ...
0
votes
1answer
14 views

Custom Javascript not working?

Basically I want the effect to look as it does here But mine won't do the effect I currently have a button but it won't activate the effect for the menu to pop open. site that I'm using to test it ...
0
votes
0answers
11 views

modify admin panel all post to show date time

Hey I want to Know how can I modify admin panel all post to show date and time instead of only date. Published post will have published date and time and scheduled post will have scheduled date and ...
0
votes
0answers
13 views

Only Wordpress <wordpress@mydomain.com> is working

My WordPress website sends email only if I do not change default WordPress username and email address. I do not able to recognize where is the problem. As we know default is: Wordpress ...
0
votes
1answer
33 views

How can draft post after 1 year

I need to do this in my post in custom post type, I need when to day publish new post. After 1 year from today convert post status from publish to draft. How can do that ?
-2
votes
0answers
20 views

Want to move WordPress custom post type in our plugin tab

I want to move my custom post type add, edit, trash etc to my custom tab menu. The give screen shot is me custom post type page I want to move. I have see this thing in one plugin which screen shot ...
0
votes
2answers
7 views

WordPress root directory change + Theme directory change

I'd like to create the following structure for my WP installation: htdocs (base dir) wp (WordPress dir) themes (WordPress theme dir) plugins (WordPress plugin dir) upload index.php .htaccess So ...
0
votes
0answers
13 views

Passing form data via AJAX to REST API And displaying results

I'm new to WordPress but have been programming PHP for a long time... I searched a bunch of questions but couldn't find what I need. I have a page with a search form that contains a few parameters ...
2
votes
0answers
16 views

How to add new embed handler not supported by oembed

I am looking to embed videos from websites that do not offer oembed support, but the reference offered on wp codex about wp_embed_register_handler() is just too broad for someone like me. I tried ...
0
votes
0answers
6 views

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar?

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar? I don't see any options to do this even within plugins, which is confusing to me. It seems a great place to have it - above ...
0
votes
0answers
8 views

How do I get all the code in the woocommerce archive product template into a single line of code or single function?

I am trying to use the Pay Per View plugin by WPMUDEV. I have spoken with their support team about how to protect the category archive loop with a pay per view system. The trouble is that their pay ...
0
votes
1answer
11 views

Echo out custom fields in comments

I am trying to figure out how to echo 4 created fields from a plugin in my theme template for the comment form and customize the comments output as well. The plugin I am using lets me add custom ...
0
votes
1answer
13 views

php if, else & custom fields - syntax error

I'm just starting to use custom fields and would like to use it to display an author box with (1) author photo (2) author name (3) author bio. I use this code in loop-single.php and it works fine: ...
0
votes
0answers
3 views

Homepage is indexed in Google with a different page title! [migrated]

I'm having the latest WordPress and it's been long that I'm seeing my website's front page is being indexed with a different page title that I'm setting everywhere, at Settings->General->Site Title, ...
0
votes
3answers
13 views

How can I Update my Theme

I Just want to know how can I update my Wordpress theme manually on live site. Actually I am using plugin called "WP Total Cache" My entire website styles is messed up when I try to update wordpress ...
0
votes
2answers
15 views

Get URLs for All Sizes of Image via Admin Panel

We want to use wordpress to host image which we'll use in our email newsletter. To that end, we can obviously upload the image via the Media panel in Admin and either right-click the image and get ...
0
votes
1answer
3 views

Categories dropdown with all values selected using wp_dropdown_categories

I'm using this code to get a dropdown list of categories, but all options are marked as selected. Therefore, the last option is the one that is displayed as selected by default. <?php ...
0
votes
0answers
7 views

Adding custom image size to the media image editor

I'm trying to give a more complete experience to my WordPress backend users and let them edit the custom image sizes I have added to my theme. I added this to my functions.php: add_image_size( ...
0
votes
0answers
9 views

How to sanitize_callback for font-family in wordpress?

At this point some options for building a Wordpress theme and I reached the point where you have to add the Customizer API function of choosing a font-family.I must have a function for ...
1
vote
0answers
21 views

Visual Editor freezing on text highlight since 4.3

Ever since I updated my website to 4.3 my visual editor is freezing every time I try to highlight a piece of text, or even place my cursor someplace random. This only seems to be happening on the text ...
-3
votes
0answers
8 views

how to add required field woocommerce

i want user to upload an image before checkout i want to add upload file in cart page it must be required he cant continue to the checkout page before he uploaded when i put the code in edit ...
0
votes
0answers
7 views

How to get the categories from Related Posts using “Posts to Posts” plugin

Sorry if this has been answered elsewhere — if it has, I have been unable find the answer — or if this seems like a basic question. But I am trying to use the Related Posts functionality built into ...
-1
votes
0answers
9 views

Embed button for post screen

i would really appreciate it if someone could help me change the "add media" button on the post screen, and make it rather go straight to "insert from url" so that my users embed a link without ...
0
votes
0answers
9 views

Custom menu item with tabs on media upload

I've been adding an extra link for inserting media in a post. The following url shows a sample code what I've used so far: https://gist.github.com/Fab1en/4586865 This is the result: But how do I ...
0
votes
0answers
11 views

Unable to get User Avatar

I am new to WordPress and developing a theme for a blog with bootstrap integration. I have downloaded a plugin WP User Avatar to show authors avatar with their posts and as its documentation states I ...
0
votes
0answers
8 views

Admin sidebar items overlapping in admin panel

Before to report this to wordpress I would like to know if it's just me or it's actually a bug. I noticed also another user that asked on the wordpress forum but he hadn't an answer for that: ...
0
votes
0answers
6 views

Custom redirect pages with out URL in content post

Please help me, For example, my web link is abc.com and I have an article, and in article 2 link is abc.com/att/file.zip (this is the blog link attachments) and a joint the other loads is ...
0
votes
1answer
12 views

My custom page template with is_user_logged_in() does not detect that I'm logged in

I have a custom page template that looks like this: <?php if( is_user_logged_in() ): ?> <?php get_header(); ?> <?php while ( have_posts() ) : the_post(); ?> <?php ...
0
votes
0answers
11 views

Why is there no Screenshots and a wrong version?

Hope you can help me! On my wordpress plugin https://wordpress.org/plugins/bettor is a wrong version number on the download button. It says 0.1 but the version is 0.2.0. Where can I change this? And ...
0
votes
1answer
17 views

Featured images not showing up

I´m having a strange issue with featured images. Here´s what I did: Added theme support for featured images with add_theme_support( 'post-thumbnails' ); Attached a featured image to each post ...

15 30 50 per page