Question
I'm trying to update my link from this: https://dev.brunchwork.com/next-event/?eb_event_id=106098978902 To this: https://dev.brunchwork.com/next-event/[guest_name_here]/[event_id_here] Following this discussion, I was able to come up with this code: In my functions.php: /*rewrite rule*/ function custom_rewrite_rule() { add_rewrite_rule('^next-event/([^/]*)/([^/]*)/?','index.php?page_id=69&guest_name=$matches[1]&event_id=$matches[2]','top'); } add_action('init', 'custom_rewrite_rule', 10, ...
0
, , 5 hours 0 Answers 4 views

Question
i would like to include an affiliate link as a widget which inserts the title of the respective page as search parameter. <a href="www.amazon.com/s?=titleofthepage">Link</a> I have already created a shortcode in the functions.php with get_the_title function post_title_shortcode(){ $variable = get_the_title(); } add_shortcode('post_title','post_title_shortcode'); and it is called ...
0
, , , , 3 days 0 Answers 10 views

Question
This looks like wp-admin remove the subfolder URL but it's not the same problem, because the subfolder part is not a subfolder. I'm working on a clean VM as a host for Docker containers. I have a dockerized Wordpress listening ...
0
, , , 3 days 0 Answers 11 views

Question
I want to apply styling only to a page with a specific URL(not id) in Wordpress. for example to .../something/events kindly suggest only PHP solutions, via funtion.php (not CSS id or class) I've tried different things but nothing has worked. thanks.
0
6 days 0 Answers 12 views

Question
On my site, when I go to www.example.com/aaa/bbbbbb/ and click on "ccccccccc", I get: www.example.com/aaa/bbbbbb/ccccccccc Instead, I need the URL to look like this: www.example.com/ccccccccc Without changing the structure in WP (I need it for breadcrumbs)
0
, 7 days 0 Answers 15 views