get currently showed author ID in theme functions.php
get currently showed author ID in theme functions.php
get currently showed author ID in theme functions.php
Custom page template not showing on page creation
Adding on mikesars answer, afterwards, one needs to Place the widget in a template file like header.php (for example). So it would be: functions.php: if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘Name of Widgetized Area’, ‘before_widget’ => ‘<div class = “widgetizedArea”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’, ) ); Template file: <?php … Read more
Use this code bellow to dynamic you nav: <?php $args = array( ‘theme_location’ => ”, ‘menu’ => ‘Main’, ‘container’ => ‘false’, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘cs-main-navigation cs-clearfix’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => ‘wp_page_menu’, ‘before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => ”, ‘items_wrap’ => ‘<ul … Read more
How to know and change the machine name of a menu?
I think your issue is stemming from what you said about not having any content in the about page. That content that you are trying to request would come from the content wysiwyg in the back of wordpress. Anything you print out on the template doesn’t automatically get stored in the database, which is what … Read more
Please follow this link same question here Change logo url link
In order for the submitted value to persist, you need to save it into the corresponding option array. To do that, you can add another function (pe_save_settings() in this case) to catch the form submission and save the field’s content. Here’s the full working code: <?php /* Plugin Name: Test option page Text Domain: test-option-page … Read more
A quick way to find your way is by installing the ACF plugin with these rules: And create author.php file with this code: <?php while ( have_posts() ) : the_post(); ?> <?php // get the background_picture ?> <?php $background_picture = get_field( ‘background_picture’, ‘user_’.get_the_ID() ); ?> <img src=”https://wordpress.stackexchange.com/questions/272675/<?php echo $background_picture[“url’] ?>” alt=””> <?php // get the … Read more
Get property of non-object on theme activation