# Help with WordPress

**URL:** https://www.phphelp.com/c/help-with-wordpress/19.md?page=1

[Latest](https://www.phphelp.com/latest.md) · [Categories](https://www.phphelp.com/categories.md)

**Page:** 2

---

## [Assistance in creating a template pack for WordPress Buddypress plugin](https://www.phphelp.com/t/assistance-in-creating-a-template-pack-for-wordpress-buddypress-plugin/34596)

<div class="topic-metadata">

**Author:** [@Inferno\_Prime](https://www.phphelp.com/u/Inferno_Prime)\
**Replies:** 0\
**Last updated:** [March 19, 2022, 8:34pm UTC](https://www.phphelp.com/t/assistance-in-creating-a-template-pack-for-wordpress-buddypress-plugin/34596 "2022-03-19T20:34:16Z")

</div>

I am not very happy with the template that BuddyPress uses. The fact is that things like the CSS tags, File names, and Div’s are Hard-coded and cannot be changed without some major knowledge of PHP and the plugin code it…

---

## [Display recent 3 posts from WordPress blog to Non-Wodpress site](https://www.phphelp.com/t/display-recent-3-posts-from-wordpress-blog-to-non-wodpress-site/34534)

<div class="topic-metadata">

**Author:** [@Abdullah33](https://www.phphelp.com/u/Abdullah33)\
**Replies:** 0\
**Last updated:** [February 26, 2022, 7:48am UTC](https://www.phphelp.com/t/display-recent-3-posts-from-wordpress-blog-to-non-wodpress-site/34534 "2022-02-26T07:48:14Z")

</div>

I want to display recent 3 posts from WordPress blog to Non-Wodpress site using WP Rest API all I know is my site rest endpoint with the latest 3 posts is: https://asool.org/blog/wp-json/wp/v2/posts?per\_page=3 the po…

---

## [Tips for a suitable WordPress theme](https://www.phphelp.com/t/tips-for-a-suitable-wordpress-theme/34515)

<div class="topic-metadata">

**Author:** [@mr108](https://www.phphelp.com/u/mr108)\
**Replies:** 0\
**Last updated:** [February 22, 2022, 7:10pm UTC](https://www.phphelp.com/t/tips-for-a-suitable-wordpress-theme/34515 "2022-02-22T19:10:57Z")

</div>

Hello, I have a draft for a Home page - see the image Which WordPress theme is best to use to easily create such a Home page, either as a landing page or regular Home page. I would prefer to use a free theme if such is…

---

## [Button linking to 404 page](https://www.phphelp.com/t/button-linking-to-404-page/34386)

<div class="topic-metadata">

**Author:** [@braetspilaarhus](https://www.phphelp.com/u/braetspilaarhus)\
**Replies:** 1\
**Last updated:** [December 27, 2021, 12:57pm UTC](https://www.phphelp.com/t/button-linking-to-404-page/34386 "2021-12-27T12:57:08Z")

</div>

I can’t figure out why the “Se mere” button here is link to a 404-page or where to correct it? It doesn’t appear to be a manual theme setting. Any ideas?

---

## [Header redirect not working in wp](https://www.phphelp.com/t/header-redirect-not-working-in-wp/34379)

<div class="topic-metadata">

**Author:** [@Hotspringsrus](https://www.phphelp.com/u/Hotspringsrus)\
**Replies:** 2\
**Last updated:** [December 25, 2021, 7:32pm UTC](https://www.phphelp.com/t/header-redirect-not-working-in-wp/34379 "2021-12-25T19:32:51Z")

</div>

I am inserting a snippet at the top of my WordPress page to test whether a user has logged in. I want to redirect the user if the user has not logged in. I created the following snippet. I can call it from the editor so …

---

## [WordPress Escape](https://www.phphelp.com/t/wordpress-escape/34275)

<div class="topic-metadata">

**Author:** [@phpman88](https://www.phphelp.com/u/phpman88)\
**Replies:** 1\
**Last updated:** [November 19, 2021, 4:12am UTC](https://www.phphelp.com/t/wordpress-escape/34275 "2021-11-19T04:12:33Z")

</div>

I submitted a plugin to WordPress repository. They rejected and ask me to escape these fields : device\_status\_tracker/device\_status\_tracker.php:220: Tracking Number: \<?php echo $tracking\_code; Would I use esc\_atrr for…

---

## [How to use custom ajax in worspress](https://www.phphelp.com/t/how-to-use-custom-ajax-in-worspress/29606)

<div class="topic-metadata">

**Author:** [@itsdarshan](https://www.phphelp.com/u/itsdarshan)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 7:17am UTC](https://www.phphelp.com/t/how-to-use-custom-ajax-in-worspress/29606 "2021-11-03T07:17:05Z")

</div>

Hai, i am learning wordpress.. this is my core php code: function fun5() { var id1=document.getElementById(‘city’).value; $.ajax({ url:‘loaddata.php?id1=’+id1, complete:function(data) { document.getElementById…

---

## [Need help with scheduling](https://www.phphelp.com/t/need-help-with-scheduling/34206)

<div class="topic-metadata">

**Author:** [@phpman88](https://www.phphelp.com/u/phpman88)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 7:10am UTC](https://www.phphelp.com/t/need-help-with-scheduling/34206 "2021-11-03T07:10:41Z")

</div>

Hey guys new to this forum. I’m currently working on a WordPress plugin that needs to send a email once it reaches a certain day/time. A little background about the project: its a raffle plugin that has a count down. On…

---

## [Translation weglot](https://www.phphelp.com/t/translation-weglot/34155)

<div class="topic-metadata">

**Author:** [@stevek](https://www.phphelp.com/u/stevek)\
**Replies:** 0\
**Last updated:** [October 24, 2021, 11:41am UTC](https://www.phphelp.com/t/translation-weglot/34155 "2021-10-24T11:41:29Z")

</div>

Hello, i installed weglot on my website. Weglot is translating through html parsing, therefore my woocommerce payment module on the checkout page isn’t translated , because the content is generated through JS (dixit w…

---

## [Anyone made changes to buddypress?](https://www.phphelp.com/t/anyone-made-changes-to-buddypress/33814)

<div class="topic-metadata">

**Author:** [@Inferno\_Prime](https://www.phphelp.com/u/Inferno_Prime)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 9:28pm UTC](https://www.phphelp.com/t/anyone-made-changes-to-buddypress/33814 "2021-08-11T21:28:13Z")

</div>

Hello Sorry I have not been back in a while been working with buddypress. Has anyone made changes to this plugin like changing the css tags or the name of one of the template directories?

---

## [Wordpress gallery link to parent-page](https://www.phphelp.com/t/wordpress-gallery-link-to-parent-page/33597)

<div class="topic-metadata">

**Author:** [@EllaBtz](https://www.phphelp.com/u/EllaBtz)\
**Replies:** 1\
**Last updated:** [June 17, 2021, 6:11am UTC](https://www.phphelp.com/t/wordpress-gallery-link-to-parent-page/33597 "2021-06-17T06:11:25Z")

</div>

Hello everyone, I need urgent help with a PHP code. I work as a web developer with wordpress and elementor and have now received an order from a customer to include a photo gallery that redirects to the page in which th…

---

## [Avoid an excessive DOM size](https://www.phphelp.com/t/avoid-an-excessive-dom-size/33556)

<div class="topic-metadata">

**Author:** [@uchenna2k2](https://www.phphelp.com/u/uchenna2k2)\
**Replies:** 3\
**Last updated:** [May 26, 2021, 5:58pm UTC](https://www.phphelp.com/t/avoid-an-excessive-dom-size/33556 "2021-05-26T17:58:38Z")

</div>

I am trying to make atomsales.com be fast. I scanned the WordPress website using gtmetrix.com and I got Avoid an excessive DOM size error Maximum DOM Depth span class="woocommerce-Price-currencySymbol 40 Maximum Chil…

---

## [Warning: Invalid argument supplied for foreach() (Wordpress UMP Plugin)](https://www.phphelp.com/t/warning-invalid-argument-supplied-for-foreach-wordpress-ump-plugin/33517)

<div class="topic-metadata">

**Author:** [@jryz](https://www.phphelp.com/u/jryz)\
**Replies:** 2\
**Last updated:** [May 26, 2021, 7:51am UTC](https://www.phphelp.com/t/warning-invalid-argument-supplied-for-foreach-wordpress-ump-plugin/33517 "2021-05-26T07:51:32Z")

</div>

Can anyone tell me what went wrong in the code below to cause the Warning: Invalid argument supplied for foreach(). And how do I fix it? This is a script from the Ultimate Membership Pro plugin ‘shortcode.php’. foreach …

---

## [Wp\_query from ajax editor](https://www.phphelp.com/t/wp-query-from-ajax-editor/33529)

<div class="topic-metadata">

**Author:** [@trtlator](https://www.phphelp.com/u/trtlator)\
**Replies:** 3\
**Last updated:** [May 20, 2021, 7:38pm UTC](https://www.phphelp.com/t/wp-query-from-ajax-editor/33529 "2021-05-20T19:38:24Z")

</div>

Hi I have a query that I would like to pull a random post and then ticker tape the name and url across the screen. I have everything working but I cannot get a spacing added to the exploded array from wp\_query https:…

---

## [To my admin office /directory/cp/index](https://www.phphelp.com/t/to-my-admin-office-directory-cp-index/33324)

<div class="topic-metadata">

**Author:** [@Glanglais](https://www.phphelp.com/u/Glanglais)\
**Replies:** 0\
**Last updated:** [April 10, 2021, 1:51pm UTC](https://www.phphelp.com/t/to-my-admin-office-directory-cp-index/33324 "2021-04-10T13:51:18Z")

</div>

Hello group, i have a site wp5.7 on php7.4 After correction few syntax fatal error from upgrade 5 to 7 and trying to get access to my admin panel that allowed me to pionted my database with an graphic interface for man…

---

## [Reordering table content in cart page](https://www.phphelp.com/t/reordering-table-content-in-cart-page/33112)

<div class="topic-metadata">

**Author:** [@Snofwake](https://www.phphelp.com/u/Snofwake)\
**Replies:** 6\
**Last updated:** [March 3, 2021, 12:59pm UTC](https://www.phphelp.com/t/reordering-table-content-in-cart-page/33112 "2021-03-03T12:59:35Z")

</div>

I’m trying to make my cart page be more like the woocommerce blocks cart page. So I’m trying to move the x button (remove item), price and quantity into the product column. Does anyone have any idea how to do it?

---

## [Automatically updated server variable with Frontend output](https://www.phphelp.com/t/automatically-updated-server-variable-with-frontend-output/33152)

<div class="topic-metadata">

**Author:** [@Chris3](https://www.phphelp.com/u/Chris3)\
**Replies:** 4\
**Last updated:** [February 19, 2021, 7:38pm UTC](https://www.phphelp.com/t/automatically-updated-server-variable-with-frontend-output/33152 "2021-02-19T19:38:17Z")

</div>

Hi, Sorry I searched so much but got no answer in the www. I need to do the following (simplified): Define a variable with init value (e.g. 500) Make a calculation each day and alter the variable (eg. add 100) Display…

---

## [Updating from 7.2 breaks site](https://www.phphelp.com/t/updating-from-7-2-breaks-site/33057)

<div class="topic-metadata">

**Author:** [@zoomenhance](https://www.phphelp.com/u/zoomenhance)\
**Replies:** 7\
**Last updated:** [February 2, 2021, 12:29am UTC](https://www.phphelp.com/t/updating-from-7-2-breaks-site/33057 "2021-02-02T00:29:56Z")

</div>

Hello! I’m a front-end WP developer trying to update PHP on a client’s commercial website. Updating from 7.2 to 7.3 or 7.4 instantly breaks the site (503 Service Unavailable). Changing to generic themes and disabling al…

---

## [Change wp\_enqueue\_script handle](https://www.phphelp.com/t/change-wp-enqueue-script-handle/33003)

<div class="topic-metadata">

**Author:** [@inferno-prime](https://www.phphelp.com/u/inferno-prime)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 9:49pm UTC](https://www.phphelp.com/t/change-wp-enqueue-script-handle/33003 "2021-01-06T21:49:38Z")

</div>

I am editing a WordPress theme and want to change the handle on one of the javascripts that have been embedded using wp\_enqueue\_script I am completely new to this so please go easy on me with this. Anyway, I see that th…

---

## [Custom widget - link value for modal](https://www.phphelp.com/t/custom-widget-link-value-for-modal/32996)

<div class="topic-metadata">

**Author:** [@Valkrider](https://www.phphelp.com/u/Valkrider)\
**Replies:** 3\
**Last updated:** [January 6, 2021, 8:34am UTC](https://www.phphelp.com/t/custom-widget-link-value-for-modal/32996 "2021-01-06T08:34:35Z")

</div>

I have a custom widget that works fine. It reads data from a custom table and displays 10 results in a widget area. I store additional data from the query that gets the results in an array. I want to turn each of the r…

---

## [Change cookie name's](https://www.phphelp.com/t/change-cookie-names/32979)

<div class="topic-metadata">

**Author:** [@inferno-prime](https://www.phphelp.com/u/inferno-prime)\
**Replies:** 4\
**Last updated:** [January 4, 2021, 7:09pm UTC](https://www.phphelp.com/t/change-cookie-names/32979 "2021-01-04T19:09:29Z")

</div>

I have seen other wordpress sites remove the test cookie and change the name for other cookies on that site. I would like to remove the test cookie and rename the other cookies. How can I do this ? ps If you want to kn…

---

## [Website sidebar drops to bottom due to \</div\>](https://www.phphelp.com/t/website-sidebar-drops-to-bottom-due-to-div/32884)

<div class="topic-metadata">

**Author:** [@Topazswan](https://www.phphelp.com/u/Topazswan)\
**Replies:** 4\
**Last updated:** [December 6, 2020, 11:51am UTC](https://www.phphelp.com/t/website-sidebar-drops-to-bottom-due-to-div/32884 "2020-12-06T11:51:17Z")

</div>

Hi, My website says many of the things which Anti-American sources want to censor. My HTML code can correct this problem with a simple 2 at the end of all the code. However each time I delete 4 they pop right back on…

---

## [PHP and WordPress Ninja Help needed](https://www.phphelp.com/t/php-and-wordpress-ninja-help-needed/32871)

<div class="topic-metadata">

**Author:** [@limmediaunlimited](https://www.phphelp.com/u/limmediaunlimited)\
**Replies:** 0\
**Last updated:** [December 1, 2020, 2:30pm UTC](https://www.phphelp.com/t/php-and-wordpress-ninja-help-needed/32871 "2020-12-01T14:30:55Z")

</div>

Greetings, Any Custom WordPress developer can help me how I can improve the loading speed of my website because it is irritating me and my developer left me. Please tells some better plugin that can help me to improve m…

---

## [Search page for custom database in Wordpress](https://www.phphelp.com/t/search-page-for-custom-database-in-wordpress/32670)

<div class="topic-metadata">

**Author:** [@jantoine](https://www.phphelp.com/u/jantoine)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 6:15am UTC](https://www.phphelp.com/t/search-page-for-custom-database-in-wordpress/32670 "2020-10-16T06:15:34Z")

</div>

I was able to integrate my custom database in WordPress by creating this page (https://www.haiti-reference.com/pages/diction/) . Now I am trying to trying to create a search page just for that page and a result page. Sin…

---

## [Oembed & Vimeo Video Thumbnail Image vs. embedded video](https://www.phphelp.com/t/oembed-vimeo-video-thumbnail-image-vs-embedded-video/32437)

<div class="topic-metadata">

**Author:** [@pixanne](https://www.phphelp.com/u/pixanne)\
**Replies:** 0\
**Last updated:** [August 25, 2020, 4:07am UTC](https://www.phphelp.com/t/oembed-vimeo-video-thumbnail-image-vs-embedded-video/32437 "2020-08-25T04:07:28Z")

</div>

I have searched and searched but can’t figure out how to do this one… I have a custom post type with custom fields set-up for video ID (Text field), where only the numerical video ID is being input (Name: video\_url) v…

---

## [Custom post field - summary list from all posts](https://www.phphelp.com/t/custom-post-field-summary-list-from-all-posts/32436)

<div class="topic-metadata">

**Author:** [@pixanne](https://www.phphelp.com/u/pixanne)\
**Replies:** 0\
**Last updated:** [August 25, 2020, 3:45am UTC](https://www.phphelp.com/t/custom-post-field-summary-list-from-all-posts/32436 "2020-08-25T03:45:55Z")

</div>

I have a custom post type where in admin panel there is a field where text and URL for a resource can be entered. Multiple can be entered.. The code looks like this: \<?php if( have\_rows('additional\_resources') ): …

---

## [How to do step by step product customization](https://www.phphelp.com/t/how-to-do-step-by-step-product-customization/32403)

<div class="topic-metadata">

**Author:** [@mararita](https://www.phphelp.com/u/mararita)\
**Replies:** 0\
**Last updated:** [August 20, 2020, 12:09am UTC](https://www.phphelp.com/t/how-to-do-step-by-step-product-customization/32403 "2020-08-20T00:09:19Z")

</div>

Hi, Can anyone advise please which WP plugin is used to do product customization for this website, link below. When customers can choose a background, add title, choose font etc. Basically, I need to do step py step p…

---

## [Admin ajax url rewrite](https://www.phphelp.com/t/admin-ajax-url-rewrite/32289)

<div class="topic-metadata">

**Author:** [@Inferno\_Prime](https://www.phphelp.com/u/Inferno_Prime)\
**Replies:** 0\
**Last updated:** [July 30, 2020, 1:03am UTC](https://www.phphelp.com/t/admin-ajax-url-rewrite/32289 "2020-07-30T01:03:07Z")

</div>

I found this topic on stackexchange and tried it but got the white page of death. I was wondering if anyone mite have an idea on how I could get this to work with the current version of wordpress ?

---

## [Different thumbnail photo](https://www.phphelp.com/t/different-thumbnail-photo/32197)

<div class="topic-metadata">

**Author:** [@ismail](https://www.phphelp.com/u/ismail)\
**Replies:** 0\
**Last updated:** [July 7, 2020, 3:37pm UTC](https://www.phphelp.com/t/different-thumbnail-photo/32197 "2020-07-07T15:37:45Z")

</div>

Hello, I need to edit the thumbnail photo of 12 products. I added 2 photos in the product images. One of them needs to be in the thumbnail. The other photo needs to be in the other fields. I can delete the thumbnail pho…

---

## [Dropdown feature](https://www.phphelp.com/t/dropdown-feature/31956)

<div class="topic-metadata">

**Author:** [@kunal66](https://www.phphelp.com/u/kunal66)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 9:09pm UTC](https://www.phphelp.com/t/dropdown-feature/31956 "2020-06-16T21:09:52Z")

</div>

Hello, I am new to WordPress and PHP. I don’t know much about WordPress. I want to create a dropdown like this website \[https://pincode.net.in/\] but don’t know how. When you select from dropdown, url changes. How to do t…

[Previous page](https://www.phphelp.com/c/help-with-wordpress/19.md)

[Next page](https://www.phphelp.com/c/help-with-wordpress/19.md?page=2)
