egh9
Forum Replies Created
-
The problem is not related to the theme, but to the compatibility of the Plugin with ACF
If there is a tool after the upload to bulk update posts once with ACF fileds The problem will be solvedNote that I use the ACF plugin in posts for custom fields
@wpshuffle This happens with any picture written in Arabic on my site, I don’t know why
@stevejburge , Is there anything new to solve this problem?
Thank you for your interest
I hope to solve the problem as soon as possible
The problem with plugin
Immediate Free Download for Easy Digital DownloadsForum: Developing with WordPress
In reply to: Edit function in WordPress to add id AutoNumber for headingIt already worked
Thank youForum: Developing with WordPress
In reply to: Edit function in WordPress to add id AutoNumber for heading@joyously
is not work It uses a fixed number for all operationsfunction anchor_content_headings($content) { $content = preg_replace_callback("/\<h([1|2|3])\>(.*?)\<\/h([1|2|3])\>/", function ($matches) { $hTag = $matches[1]; $title = $matches[2]; for($i = 1; $i <= 30; $i++) { $formattedNumber = sprintf('%02d', $i); $formattedNumber; } $slug = "" . $formattedNumber; return '<a href="#'. $slug .'"><h'. $hTag .' id="' . $slug . '">' . $title . '</h'. $hTag .'></a>'; }, $content); return $content; } add_filter('the_content', 'anchor_content_headings');
this code is work but random number i want number 1 2 3 4 5 6 without duplication
function anchor_content_headings($content) { $content = preg_replace_callback("/\<h([1|2|3])\>(.*?)\<\/h([1|2|3])\>/", function ($matches) { $hTag = $matches[1]; $title = $matches[2]; for($i = 1; $i <= 99; $i++) { $formattedNumber = sprintf('%02d', $i); $formattedNumber = rand(1,5); } $slug = "" . sanitize_title_with_dashes($formattedNumber); return '<a href="#'. $slug .'"><h'. $hTag .' id="' . $slug . '">' . $title . '</h'. $hTag .'></a>'; }, $content); return $content; } add_filter('the_content', 'anchor_content_headings');
- This reply was modified 5 years, 2 months ago by egh9.
Forum: Developing with WordPress
In reply to: Edit function in WordPress to add id AutoNumber for headingnumber product user in post
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } global $post; $author = get_user_by( 'id', get_query_var( 'author' ) ); ?>
<?php $authordownload =get_the_author_meta( 'ID',$author->ID ); ?> <?php echo count_user_posts($authordownload,'download'); ?>
- This reply was modified 5 years, 6 months ago by egh9.
@pratik-jain Thank you the problem was solved
@pratik-jain there Is anything new?
Forum: Plugins
In reply to: [Comments - wpDiscuz] not working with EDDhi @pratik-jain
I want to add in list products and count products in user profile
Can you give the appropriate code?@pratik-jain
i use WP User Frontend Pro to submit form front-end