Ahmed Na
Forum Replies Created
-
I’ve fixed the problem, there was missing/incorrect syntax.
Just change the function add_api_routes() with the code below:
public function add_api_routes() { register_rest_route($this->namespace, 'token', array( 'methods' => 'POST', 'callback' => array($this, 'generate_token'), )); register_rest_route($this->namespace, 'token/validate', array( 'methods' => 'POST', 'callback' => array($this, 'validate_token'), )); }
Hope this will help.
Forum: Plugins
In reply to: [WP Job Manager] Propelm with the single job pageThank you maike for your reply, i tried as you told me it work and this is what i did:
- I created a single-job_listings.php file in the theme —- the correct name will be single-job_listing.php then added my code inside it
As an example for helping other, the code should be similar to this according to my theme:
<?php get_header(); ?> <br class="clear" /> <div class="row fitvids"> <?php if(!of_get_option('md_page_disable_titles')) { ?> <div class="sixteen columns navibg withall border-color" style="margin-bottom:25px;"> <h3 style="margin-left:0;"><?php the_title(); ?></h3> </div> <?php } ?> <div class="sixteen columns"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php the_content(); ?> <?php endwhile; ?> </div> </div> <?php global $job_manager; ?> <?php get_footer(); ?>
Thanks again
Forum: Fixing WordPress
In reply to: Two different language WordPress siteThank you @senff for your replay, but the two sites not completely 100% the same, because there is pages not same and other content that is difference than the English one, but i will try to see WPML plugin.
again Thanks.
Forum: Fixing WordPress
In reply to: Creating completely new WordPress site from old WP oneOk, thank you
Forum: Fixing WordPress
In reply to: Creating completely new WordPress site from old WP oneagain, thank you for your reply (@Christiaan Conover).
I have a local development environment and i will try as you say, also i’m keeping it in the same domain not moving to a new one, the only change as i said before is a ( new page structure,categories,tags) but the content will be the same.
Forum: Fixing WordPress
In reply to: Creating completely new WordPress site from old WP oneThank you (@Christiaan Conover) for your reply, but the new website will be different in (categories, tags, new pages, new menu) that’s what i mean by completely new, so i’m not upgrading or migrating.
But in the other side i need to use all the content from the old WP site ( the data itself as a raw martial e.g: if i have 1000 post i need to use them in my new site, i don’t need to enter them again instead reuse them)
I hope that i make it more clear.
Thanks