php, wordpress, pagination
I’ve created a posts where the user name and bio appears at the bottom, but I would like to display also the Linkedin link (added alrady on the user contact info). I’ve tried a lot of different ways …
|
|||
Add custom filter to wordpress blog Im using simple fields in a wordpress site, so users can “tag” diferents post in admin. Now, in the frontend view, i want to show a dropdown with the different options (distinct tags) that are …
|
|||
Woocommerce change tax rate on coupon use I’m trying to update my Woocommerce tax rate when a certain coupon is used. For this I’m using this code in my functions.php: function apply_matched_coupons() { global $woocommerce; $coupon_code = …
|
|||
More Than One OG URL Specified and only Yoast graph is open not Jetpack I’m having some problem with the od: tags which is the most common issue. Only Yoast is active for open graphs not Jackpack publicize and then how the og: tags are showing in the header of the page …
|
|||
increment id for dynamically generated div I want to dynamically generate video player container divs that will have a unique id. The elements are generated through Visual Composer in WordPress and the final html should look something like …
|
|||
Adding ‘placeholder’ text to an element using JS – There are a few posts on this already (like this one) but they’re not really adaptable to this situation. I have a shortcode that dynamically generates text content based on a custom field in my …
|
|||
I am trying to add a grid of blog posts to my homepage template. I have pulled in the content from 4 blog posts, now I just need to pull in the featured image as a background for each div. Here is …
|
|||
WPML Media Slowing Media Library Deletion I have just transferred a large WP multisite enabled solution over from another company onto my own hosting environment. (VPS Ubuntu 16.04 & PHP 7.0 + Apache) The solution works great until …
|
|||
Do we need to add primary key to multiple columns index? Do we need to add primary key to multiple columns index ? Or it will be automatically put there ? ALTER TABLE `wp_posts` ADD PRIMARY KEY (`ID`), ADD KEY `post_name` (`post_name`(191)), ADD KEY …
|
|||
Always get parent category name WordPress I just would like to get and display the parent (or grand parent if necessary) category name in WordPress. I have this : single_cat_title() But it display the actual category name. My code is in …
|
|||
WordPress cant upload to wp-content/upload So a client asked to make some changes to his wordpress site, I can install and run plugins, but when I try to put some images or pdf files into the media it gives me the following error: “cant upload …
|
|||
WordPress – Display another div after logging in I’m currently building 2 step auth plugin as my school project. I’ve already done the auth and now I am on my way to implementing it into the WordPress. I got stuck with doing this: on wp-login.php …
|
|||
Giving custom background image to a category header wp I’m doing a website on wordpress using newspaper theme, I want to display a custom header on each category but when I add the background with css all the categories display the same banner, and I’m …
|
|||
Revolution slider fails to display with mailchimp popup window i have set up a revolution slider in my home page in a wordpress site. I decided to add some Newsletter popup window that shows only the first time the user arrives to the page using the advise from …
|
|||
How to hold the star rating even after updating the page I have created a 5 star rating system plugin using jQuery in wordpress (backend). The star values are also getting updated in to post meta table. If I have give a post 3 star and updates the page, the …
|
|||
How to fetch posts with pagination feature in WP on a custom table? I have a custom table that I created named cars_plugin and it has columns id, name, color, model Now, I can get list of cars using $sql = “SELECT note FROM cars_plugin WHERE ID = ‘$id'”; $query = …
|
|||
Get WooCommerce product attributes from complete order? I am working on a small plugin for WooCommerce that will allow me to create a URL from an object to link to a certain page. That page will take into account the PHP GET variables and generate a …
|
|||
WordPress website on AWS EC2 stopped running php code I have installed wordpress website over aws ec2 . suddenly it stopped . and showing message “Amazon Linux AMI Test Page”. i am unable to open mywebsite. it is not running php code..
|
|||
Get current Order ID for Woocommerce user cart I am adding a custom payment gateway to WP Woocommerce. I want to get the current user order_id for the cart created. I can get the cart total : global $woocommerce; $total= …
|
|||
Get woocommerce category by name and asign to product Hello i been searching for a while now but i cant get this to work, i cant get the category by name, and also i cant asign it to a product programatically $product = new WC_Product(4); write_log($…
|