Forum Replies Created

Viewing 15 replies - 586 through 600 (of 786 total)
  • Hello michaelpon12,
    you can use following code to get all categories name and Url :-

    <?php $categories = get_categories();
    foreach ($categories as $cat) {
     $category_link = get_category_link($cat->cat_ID);
     $categoryName = get_cat_name($cat->cat_ID);
     ?>
      '<a href="<?php echo esc_url( $category_link ); ?>" title="Category Name"><?php echo $categoryName; ?></a>';
    
    <?php
    }
    ?>

    Thanks hope this will help you.

    Hi hungzai,
    Try change your first line of code “<?php $categories = get_categories(‘hide_empty=0&parent=16’);”
    Use hide_empty=1
    This will work for you.
    Thanks

    Hello mascarainthecity,
    Order of blog posts depend on the theme you are using. You can Install “Post Types Order” plugin and set the order manually to your blog posts.

    Hi lchanys,

    Go to your phpMyAdmin and go inside “wp_option” table.
    See “siteurl” and “home” and put your website URL to its value.
    Means for option_name “siteurl” and “home“ set the option_value to your website URL.

    After that try accessing your website.
    Hope that help.
    Thanks

    Hello,
    Please make sure that you are getting page id in $pageID variable and you assign this page some child pages. If not then create some new child pages of this page and try to run this code again. Because I too tried and getting all content from child pages.
    Thanks Hope This will help you.

    Forum: Fixing WordPress
    In reply to: Popup loginwindow

    Check your “.htaccess” file at the root, means just parallel to wp-content and wp-admin.
    See if there something mentioned about “.htpasswd” in your .htaccess.
    If there something like that then either comment the code or remove the code for removing the authentication.

    Plugin Author cedcommerce

    (@cedcommerce)

    Hello bgtbbox,

    Thanks for using Product auto share and your appreciation.

    For Facebook Page support we are currently working on that soon we will launch it. Please stay connected for more on Product Auto Share.

    Thanks
    CedCommerce

    Hi jyd2ustudio,
    The link you have given is not running. Too many redirect problem occurs when you loop through 2 or pages continuously.
    Just a suggestion to you.
    To set a page as home page.No need to do any special thing. Just go to Settings->Reading
    Here you will get “Front page displays” select “A static page (select below)” and from below dropdown select “My Account” and save.
    This will make “My Account” page as your home page.
    Hope that will work for you.

    Hi Edward,
    The issue seems to be because of some plugin you are using, because its the default functionality of wordpress to give new unique id to every post got created.
    One of the quick solution is to go to your dashboard: settings->permalink and just click save there.
    Now try to create new post. Hope now everything will be fine. If not, please come up with more details of your problem.

    Thanks

    Plugin Author cedcommerce

    (@cedcommerce)

    Hello bagslash

    Sorry for your inconvenience, you somehow missed the Authorization part from Facebook. For properly setting Facebook please following these steps:
    1. Please Fill the AppId and App Secret in Product Auto Share-> Facebook Tab
    2. When will you save these appId and App secret on top of window a button will appear
    “Auth From Facebook”. You need to click auth from Facebook and you will be redirect to Facebook then give permission to post on your profile.
    3. This process will automatically fetch access token from Facebook you don’t need to do anything else.
    Now you are ready to post on Facebook.

    Thanks
    CedCommerce

    Hello jb317, Use following code in your .htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase http://www.olddomain.com/
    
    RewriteRule !^(wp-admin(/.*))?$ http://www.newdomain.com/page1%{REQUEST_URI} [L,NC,NE,R=301]
    
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . http://www.olddomain.com/index.php [L]
    </IfModule>

    Hi ProGeekers,
    please be clear and specific about your issue.
    If you copied and paste the exact code then, there is a glitch in the code.

    <?php if ((ca tegory_description() != '') && !is_paged()) : ?>
       <div lass="notebox">
        <?php echo category_description(); ?>
       </div>
      <?php endif; ?>

    “ca tegory_description()” must be “category_description()”
    That is the issue behind server-error.
    Hope this will help.
    Thanks

    Forum: Fixing WordPress
    In reply to: Popup loginwindow

    Hey Dinno,
    See your .htaccess file, there should be some code in which “.htpasswd” will be mentioned or somthing like following:

    AuthUserFile /path_to_password_file/.htpasswd
    AuthName “Secret Stuff”
    AuthType Basic
    require valid-user

    If you want to remove this authentication then comment the found code by ‘#’.
    And then check if it’s done.

    Hi countrymiles,

    Category and Tag is coming there because it is coded in your page.php file.
    If you want to remove them complete go can check your page.php if present in child theme, otherwise check your parent theme.
    You have to comment the code responsible for rendering category and tag.Its the actual solution to solve your issue.
    Otherwise you can use the CSS to hide it. It will also solve your purpose.

    Thanks

    Hello,
    You can try query using page name like this
    $query = new WP_Query( array( ‘pagename’ => ‘testpage’ ) );
    You can take reference from here
    https://codex.wordpress.org/Class_Reference/WP_Query
    Hope this info will help you.

Viewing 15 replies - 586 through 600 (of 786 total)