Set site title & tagline with wp.config or function.php
Currently I can change Site Title & Tagline in Settings >> General but someone attack and remove it.
Currently I can change Site Title & Tagline in Settings >> General but someone attack and remove it.
I have function which gets menu next and previous item url. I want to get also title for them. How can I do this? This is what i have :
I have this code that is displaying a list of my blogposts on my index.
What I would like is to add a category parameter to it, to only display a list of the posts with a specific category.
I don’t seem to be able to do it, without breaking everything…
Right now the below function outputs all variations images of a product. E.g. 3x blue (size S, M, L), 3x red (size S, M, L) I would like the below function to only output unique color images. E.g. 1x blue, 1x red Tried to use array_unique in the echo string but could not get it … Read more
I created a JS and PHP code to query a database and display matching rows on a page. It was messing up other pages on WP, so I wanted to know how to target a single page so the JS doesn’t run on other pages.
I need to add a custom text in wordpress Post title dynamically which I’m trying to add via this code in function.php
I have problem with custom post type. In BO url’s are ok example: page.pl/post_type_name/post_title.
When I try use get_the_permalink() or the_permalink() it return url like:
/?post_type=cpt_wydarzenia&p=258
I have a child theme folder called themes/child-theme and inside I have a file dashboard_payments.php.
Under the child theme folder I’m creating a new folder called gateway and inside there’s a config.php.
I am using this code as part of a function: