Tag: r

59 votes
14 answers
1.4K views
Retrieve WordPress root directory path?

How can I retrieve the path to the root directory in WordPress CMS?

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
66 votes
5 answers
2.4K views
How to Use AJAX in a WordPress Shortcode?

I have a code to display a random quote. One person wrote a function to implement all of this. But the update

avatar
Majorie
0 1 0 9
asked 07 September, 2021
49 votes
4 answers
1.7K views
Where is the post featured image link stored in the WordPress database?

Where is the featured image link stored in the WordPress Database? I searched in the wp_postmeta table but I

avatar
Clarice
0 1 0 9
asked 07 September, 2021
53 votes
9 answers
3.1K views
How to pass extra variables in URL with WordPress

I am having trouble trying to pass an extra variable in the url to my WordPress installation. For example /n

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
57 votes
5 answers
467 views
Column count doesn't match value count at row 1

So I read the other posts but this question is unique. So this SQL dump file has this as the last entry. INSE

avatar
Keith
0 1 0 9
asked 07 September, 2021
55 votes
11 answers
1.7K views
WordPress Get the Page ID outside the loop

I want to get the page ID before starting the loop in WordPress. I am using $page = get_query_var('page

avatar
Louetta
0 1 0 9
asked 07 September, 2021
56 votes
6 answers
2.6K views
How to include WordPress functions in custom .php file?

How can I include WordPress functions in a custom .php file? In detail: I have a directory under my theme (Co

avatar
Vi
0 1 0 9
asked 07 September, 2021
45 votes
11 answers
1.5K views
Get current category ID of the active page

Looking to pull the category ID of a specific page in WordPress that is listing all posts using that specific

avatar
Joseph
0 1 0 9
asked 07 September, 2021
55 votes
17 answers
658 views
Use .htaccess to redirect HTTP to HTTPs

Please, don't recommend me the long and very detailed thread with more than 173 upvotes. It didn't w

avatar
Venice
0 1 0 9
asked 07 September, 2021
51 votes
9 answers
808 views
Get custom product attributes in Woocommerce

In Woocommerce, I am trying to get product custom attribute values but I fail miserably and I don't get a

avatar
Shantay
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
313 views
How To Include CSS and jQuery in my WordPress plugin?

How To Include CSS and jQuery in my WordPress plugin ?

avatar
Robyn
0 1 0 9
asked 07 September, 2021
53 votes
1 answers
538 views
Strange iframe added into body tags called `rufous-sandbox`

I'm working on a local WordPress site, and for some reason there is an iframe added just after the openin

avatar
Rudy
0 1 0 9
asked 07 September, 2021
58 votes
4 answers
1.5K views
WordPress query single post by slug

For the moment when I want to show a single post without using a loop I use this: <?php $post_id = 54; $qu

avatar
Kisha
0 1 0 9
asked 07 September, 2021
55 votes
4 answers
624 views
What are the WordPress alternatives for Ruby on Rails?

What are the WordPress alternatives for Ruby on Rails? How do they compare to WordPress?    

avatar
Wilber
0 1 0 9
asked 07 September, 2021
51 votes
3 answers
2.5K views
JointsWP4 (SASS): Changing Properties in Sticky

TL;DR: Is Sticky actually able to react to changes I give through JavaScript? If so, how? (The project is usi

avatar
Fabian
0 1 0 9
asked 07 September, 2021
54 votes
5 answers
1.6K views
How to get WooCommerce order details

In WooCommerce from the following line code: $order = new WC_Order( $order_id ); How can I get WooCommerce

avatar
Joseph
0 1 0 9
asked 07 September, 2021
58 votes
6 answers
2.3K views
How to get last inserted row ID from WordPress database?

My WordPress plugin has a table with a AUTO_INCREMENT primary key field called ID. When a new row is inserted

avatar
Eddie
0 1 0 9
asked 07 September, 2021
56 votes
26 answers
1.7K views
What&apos;s the net::ERR_HTTP2_PROTOCOL_ERROR about?

I'm currently working on a website, which triggers a net::ERR_HTTP2_PROTOCOL_ERROR 200 error on Google Ch

avatar
Boyd
0 1 0 9
asked 07 September, 2021
54 votes
8 answers
413 views
PHP - Merging two arrays into one array (also Remove Duplicates)

Hi I'm Trying to merge two arrays and also want to remove duplicate values from final Array. Here is my

avatar
Keila
0 1 0 9
asked 07 September, 2021
59 votes
23 answers
1.3K views
WordPress is giving me 404 page not found for all pages except the homepage

All of a sudden I go to my WordPress website and all the pages give me a 404 page not found page. I'm ass

avatar
Lynette
0 1 0 9
asked 07 September, 2021